[opaque pointer type] more gep API migrations (AsmParser)
authorDavid Blaikie <dblaikie@gmail.com>
Sat, 14 Mar 2015 21:11:24 +0000 (21:11 +0000)
committerDavid 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

index 363d4369a3c20d21aea6c830dd4dcfa8ee53b24b..bb822fe3b8d7428ecd341470246b0b2d312b6fa7 100644 (file)
@@ -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;