forked from OSchip/llvm-project
[opaque pointer type] Use pointee type retrieved from asm, rather than accessing it via the pointer type
llvm-svn: 235520
This commit is contained in:
parent
ec6789bcfa
commit
e169e8206b
|
@ -2849,8 +2849,7 @@ bool LLParser::ParseValID(ValID &ID, PerFunctionState *PFS) {
|
|||
}
|
||||
|
||||
SmallPtrSet<const Type*, 4> Visited;
|
||||
if (!Indices.empty() &&
|
||||
!BasePointerType->getElementType()->isSized(&Visited))
|
||||
if (!Indices.empty() && !Ty->isSized(&Visited))
|
||||
return Error(ID.Loc, "base element of getelementptr must be sized");
|
||||
|
||||
if (!GetElementPtrInst::getIndexedType(Ty, Indices))
|
||||
|
|
Loading…
Reference in New Issue