[opaque pointer type] more gep API migrations (AsmParser)

llvm-svn: 232276
This commit is contained in:
David Blaikie 2015-03-14 21:11:24 +00:00
parent d6d70e753d
commit cd7b97e48f
1 changed files with 1 additions and 1 deletions

View 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;