projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41e8e9d
)
Fix test/Regression/Transforms/LevelRaise/2002-03-21-MissedRaise2.ll
author
Chris Lattner
<sabre@nondot.org>
Thu, 21 Mar 2002 22:39:59 +0000
(22:39 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 21 Mar 2002 22:39:59 +0000
(22:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1941
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/ExprTypeConvert.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/ExprTypeConvert.cpp
b/lib/Transforms/ExprTypeConvert.cpp
index 5d6f8d298ddc63810a2f38cf4458f5bb46011407..3c3e27161b449306baffda66354832202186f794 100644
(file)
--- 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();