forked from OSchip/llvm-project
[opaque pointer type] more gep API migrations (AsmParser)
llvm-svn: 232276
This commit is contained in:
parent
d6d70e753d
commit
cd7b97e48f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue