projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6d70e7
)
[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)
llvm-svn: 232276
llvm/lib/AsmParser/LLParser.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/AsmParser/LLParser.cpp
b/llvm/lib/AsmParser/LLParser.cpp
index
363d436
..
bb822fe
100644
(file)
--- a/
llvm/lib/AsmParser/LLParser.cpp
+++ b/
llvm/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;