diff options
author | Chris Lattner <sabre@nondot.org> | 2002-03-21 23:02:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-03-21 23:02:37 +0000 |
commit | 5f4a5289d406ea0b40994544d613df689ccfb2e1 (patch) | |
tree | 76912e3c827ca35f56cb7bc760692ffcd09f0777 | |
parent | df268ceb06f8b16843b8c7bda2367afd225cef43 (diff) |
Fix bug test/Regression/Transforms/LevelRaise/2002-03-21-MissedRaise3.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1943 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/ExprTypeConvert.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/ExprTypeConvert.cpp b/lib/Transforms/ExprTypeConvert.cpp index 3c3e27161b..cd76bdbf1f 100644 --- 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; |