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:
df268ce
)
Fix bug test/Regression/Transforms/LevelRaise/2002-03-21-MissedRaise3.ll
author
Chris Lattner
<sabre@nondot.org>
Thu, 21 Mar 2002 23:02:37 +0000
(23:02 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 21 Mar 2002 23:02:37 +0000
(23:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1943
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 3c3e27161b449306baffda66354832202186f794..cd76bdbf1f39999311da5b5a17e1f0e0555f197d 100644
(file)
--- a/
lib/Transforms/ExprTypeConvert.cpp
+++ b/
lib/Transforms/ExprTypeConvert.cpp
@@
-71,7
+71,7
@@
static bool MallocConvertableToType(MallocInst *MI, const Type *Ty,
unsigned OldTypeSize = TD.getTypeSize(MI->getType()->getElementType());
// Must have a scale or offset to analyze it...
- if (!Expr.Offset && !Expr.Scale) return false;
+ if (!Expr.Offset && !Expr.Scale
&& OldTypeSize == 1
) return false;
// Get the offset and scale of the allocation...
int OffsetVal = Expr.Offset ? getConstantValue(Expr.Offset) : 0;