mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Don't call getForwardedType() twice, as recommended by Chris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13391 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
60083e2fc0
commit
8cb23dad20
@ -161,8 +161,8 @@ const Type* GetElementPtrInst::getIndexedType(const Type *Ptr,
|
||||
// of being refined to another type (and hence, may have dropped all
|
||||
// references to what it was using before). So, use the new forwarded
|
||||
// type.
|
||||
if (Ptr->getForwardedType()) {
|
||||
Ptr = Ptr->getForwardedType();
|
||||
if (const Type * Ty = Ptr->getForwardedType()) {
|
||||
Ptr = Ty;
|
||||
}
|
||||
}
|
||||
return CurIdx == Idx.size() ? Ptr : 0;
|
||||
|
Loading…
Reference in New Issue
Block a user