mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-22 09:29:31 +00:00
[opaque pointer type] Use pointee type retrieved from asm, rather than accessing it via the pointer type
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235520 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1606ccad09
commit
1436ff81cc
@ -2849,8 +2849,7 @@ bool LLParser::ParseValID(ValID &ID, PerFunctionState *PFS) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SmallPtrSet<const Type*, 4> Visited;
|
SmallPtrSet<const Type*, 4> Visited;
|
||||||
if (!Indices.empty() &&
|
if (!Indices.empty() && !Ty->isSized(&Visited))
|
||||||
!BasePointerType->getElementType()->isSized(&Visited))
|
|
||||||
return Error(ID.Loc, "base element of getelementptr must be sized");
|
return Error(ID.Loc, "base element of getelementptr must be sized");
|
||||||
|
|
||||||
if (!GetElementPtrInst::getIndexedType(Ty, Indices))
|
if (!GetElementPtrInst::getIndexedType(Ty, Indices))
|
||||||
|
Loading…
Reference in New Issue
Block a user