Fix test/Regression/Transforms/LevelRaise/2002-03-21-MissedRaise2.ll

llvm-svn: 1941
This commit is contained in:
Chris Lattner 2002-03-21 22:39:59 +00:00
parent ef7023bd94
commit dc960a6d4d
1 changed files with 1 additions and 2 deletions

View File

@ -57,8 +57,7 @@ static bool AllIndicesZero(const MemAccessInst *MAI) {
//
static bool MallocConvertableToType(MallocInst *MI, const Type *Ty,
ValueTypeCache &CTMap) {
if (!MI->isArrayAllocation() || // No array allocation?
!isa<PointerType>(Ty)) return false; // Malloc always returns pointers
if (!isa<PointerType>(Ty)) return false; // Malloc always returns pointers
// Deal with the type to allocate, not the pointer type...
Ty = cast<PointerType>(Ty)->getElementType();