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 717dba9474
commit d7789cb819
1 changed files with 2 additions and 1 deletions

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