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();