Fix bug: test/Regression/Other/2002-03-14-LevelRaiseHang.ll

llvm-svn: 1869
This commit is contained in:
Chris Lattner 2002-03-14 16:37:04 +00:00
parent edef6552de
commit 4ca6cd403f
1 changed files with 1 additions and 1 deletions

View File

@ -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.
//