[llvm-commits] CVS: llvm/lib/Transforms/TransformInternals.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Jun 7 16:46:01 PDT 2003
Changes in directory llvm/lib/Transforms:
TransformInternals.cpp updated: 1.34 -> 1.35
---
Log message:
Fix bug: LevelRaise/2003-06-07-EmptyArrayTest.ll
---
Diffs of the changes:
Index: llvm/lib/Transforms/TransformInternals.cpp
diff -u llvm/lib/Transforms/TransformInternals.cpp:1.34 llvm/lib/Transforms/TransformInternals.cpp:1.35
--- llvm/lib/Transforms/TransformInternals.cpp:1.34 Tue May 20 13:45:33 2003
+++ llvm/lib/Transforms/TransformInternals.cpp Sat Jun 7 16:45:42 2003
@@ -56,7 +56,8 @@
ThisOffset = Offset;
NextType = getStructOffsetStep(STy, ThisOffset, Indices, TD);
} else if (const ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
- assert(Offset < TD.getTypeSize(ATy) && "Offset not in composite!");
+ assert(Offset == 0 || Offset < TD.getTypeSize(ATy) &&
+ "Offset not in composite!");
NextType = ATy->getElementType();
unsigned ChildSize = TD.getTypeSize(NextType);
More information about the llvm-commits
mailing list