We were not correctly burrowing down multiple levels to get to a leaf. Fix this now
authorChris Lattner <sabre@nondot.org>
Thu, 7 Mar 2002 21:18:00 +0000 (21:18 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 7 Mar 2002 21:18:00 +0000 (21:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1833 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/TransformInternals.cpp

index f773a1c473e2c887cd7a7e447d5d99974c4a6f07..67c25e2fc1f07ff7dc6a0435e68885a917eaa5bb 100644 (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;
 }