diff options
author | Chris Lattner <sabre@nondot.org> | 2002-03-21 22:39:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-03-21 22:39:59 +0000 |
commit | 8e640f1fc9595cb5500fc9d7d50ee3e34b4d8ca9 (patch) | |
tree | df7ccfbcf0a7ffce21841b0e3920175bf2b239fb | |
parent | 41e8e9deead5ad0c3d574d3fa865a3f7c008bf92 (diff) |
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
-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(); |