From 8e640f1fc9595cb5500fc9d7d50ee3e34b4d8ca9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 21 Mar 2002 22:39:59 +0000 Subject: [PATCH] Fix test/Regression/Transforms/LevelRaise/2002-03-21-MissedRaise2.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1941 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/ExprTypeConvert.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Transforms/ExprTypeConvert.cpp b/lib/Transforms/ExprTypeConvert.cpp index 5d6f8d298dd..3c3e27161b4 100644 --- a/lib/Transforms/ExprTypeConvert.cpp +++ b/lib/Transforms/ExprTypeConvert.cpp @@ -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(Ty)) return false; // Malloc always returns pointers + if (!isa(Ty)) return false; // Malloc always returns pointers // Deal with the type to allocate, not the pointer type... Ty = cast(Ty)->getElementType();