diff options
-rw-r--r-- | lib/Transforms/ExprTypeConvert.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/ExprTypeConvert.cpp b/lib/Transforms/ExprTypeConvert.cpp index 5d6f8d298d..3c3e27161b 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<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(); |