1
0
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:
Chris Lattner 2002-03-07 21:18:00 +00:00
parent 09424811e9
commit 60cb774b66

View File

@ -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;
}