mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
We were not correctly burrowing down multiple levels to get to a leaf. Fix this now
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1833 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
921ef3a185
commit
4736d06bf4
@ -119,7 +119,8 @@ const Type *getStructOffsetType(const Type *Ty, unsigned &Offset,
|
||||
}
|
||||
|
||||
unsigned SubOffs = Offset - ThisOffset;
|
||||
const Type *LeafTy = getStructOffsetType(NextType, SubOffs, Offsets);
|
||||
const Type *LeafTy = getStructOffsetType(NextType, SubOffs,
|
||||
Offsets, StopEarly);
|
||||
Offset = ThisOffset + SubOffs;
|
||||
return LeafTy;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user