From: David Blaikie Date: Sat, 14 Mar 2015 21:11:24 +0000 (+0000) Subject: [opaque pointer type] more gep API migrations (AsmParser) X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bb939f02b25936b41687bb4a1929191d98f21b16;p=oota-llvm.git [opaque pointer type] more gep API migrations (AsmParser) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232276 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index 363d4369a3c..bb822fe3b8d 100644 --- 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(Inst)->setIsInBounds(true); return AteExtraComma ? InstExtraComma : InstNormal;