projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9f505e
)
[opaque pointer type] more gep API migrations (AsmParser)
author
David Blaikie
<dblaikie@gmail.com>
Sat, 14 Mar 2015 21:11:24 +0000
(21:11 +0000)
committer
David Blaikie
<dblaikie@gmail.com>
Sat, 14 Mar 2015 21:11:24 +0000
(21:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232276
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/AsmParser/LLParser.cpp
patch
|
blob
|
history
diff --git
a/lib/AsmParser/LLParser.cpp
b/lib/AsmParser/LLParser.cpp
index 363d4369a3c20d21aea6c830dd4dcfa8ee53b24b..bb822fe3b8d7428ecd341470246b0b2d312b6fa7 100644
(file)
--- a/
lib/AsmParser/LLParser.cpp
+++ b/
lib/AsmParser/LLParser.cpp
@@
-5521,7
+5521,7
@@
int LLParser::ParseGetElementPtr(Instruction *&Inst, PerFunctionState &PFS) {
if (!GetElementPtrInst::getIndexedType(BaseType, Indices))
return Error(Loc, "invalid getelementptr indices");
- Inst = GetElementPtrInst::Create(Ptr, Indices);
+ Inst = GetElementPtrInst::Create(
Ty,
Ptr, Indices);
if (InBounds)
cast<GetElementPtrInst>(Inst)->setIsInBounds(true);
return AteExtraComma ? InstExtraComma : InstNormal;