[llvm] r232276 - [opaque pointer type] more gep API migrations (AsmParser)
David Blaikie
dblaikie at gmail.com
Sat Mar 14 14:11:25 PDT 2015
Author: dblaikie
Date: Sat Mar 14 16:11:24 2015
New Revision: 232276
URL: http://llvm.org/viewvc/llvm-project?rev=232276&view=rev
Log:
[opaque pointer type] more gep API migrations (AsmParser)
Modified:
llvm/trunk/lib/AsmParser/LLParser.cpp
Modified: llvm/trunk/lib/AsmParser/LLParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLParser.cpp?rev=232276&r1=232275&r2=232276&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLParser.cpp (original)
+++ llvm/trunk/lib/AsmParser/LLParser.cpp Sat Mar 14 16:11:24 2015
@@ -5521,7 +5521,7 @@ int LLParser::ParseGetElementPtr(Instruc
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;
More information about the llvm-commits
mailing list