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:
Chris Lattner 2002-03-07 21:18:00 +00:00
parent 921ef3a185
commit 4736d06bf4

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