diff options
author | Chris Lattner <sabre@nondot.org> | 2002-03-14 16:37:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-03-14 16:37:04 +0000 |
commit | 754cf415f688d23b7bb2339b12599dc7cbb7e46c (patch) | |
tree | a84aa7e810d51452d7379a2adbaa23cc4cacdb6d /lib/Transforms/TransformInternals.cpp | |
parent | 34fc767c105e61c8e6a93541634e015f964b14b4 (diff) |
Fix bug: test/Regression/Other/2002-03-14-LevelRaiseHang.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1869 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/TransformInternals.cpp')
-rw-r--r-- | lib/Transforms/TransformInternals.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/TransformInternals.cpp b/lib/Transforms/TransformInternals.cpp index a68cf87b2b..5117ce8dd5 100644 --- a/lib/Transforms/TransformInternals.cpp +++ b/lib/Transforms/TransformInternals.cpp @@ -231,7 +231,7 @@ const Type *ConvertableToGEP(const Type *Ty, Value *OffsetVal, Indices.push_back(ConstantUInt::get(Type::UIntTy, Index)); Offset -= Index*ElSize; // Consume part of the offset - } else if (!isa<PointerType>(CompTy) || CompTy == Ty) { + } else if (isa<ArrayType>(CompTy) || Indices.empty()) { // Must be indexing a small amount into the first cell of the array // Just index into element zero of the array here. // |