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
717dba9474
commit
d7789cb819
|
@ -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