mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
We were not correctly burrowing down multiple levels to get to a leaf. Fix this now
llvm-svn: 1833
This commit is contained in:
parent
09424811e9
commit
60cb774b66
@ -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…
Reference in New Issue
Block a user