forked from OSchip/llvm-project
Fix bug: test/Regression/Other/2002-03-14-LevelRaiseHang.ll
llvm-svn: 1869
This commit is contained in:
parent
edef6552de
commit
4ca6cd403f
|
@ -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.
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue