diff options
author | Chris Lattner <sabre@nondot.org> | 2001-12-06 18:05:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-12-06 18:05:55 +0000 |
commit | 26a408ab9a336cf77ac9af977b53138756fa68f7 (patch) | |
tree | ec49d39057e657359ece2522f8891d19a779aa76 /lib/Transforms/TransformInternals.cpp | |
parent | 4753bf21a4310a20ee1454e9dce48c87a06e8d27 (diff) |
Fix bug that caused invalid transformations to be applied
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1426 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/TransformInternals.cpp')
-rw-r--r-- | lib/Transforms/TransformInternals.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/TransformInternals.cpp b/lib/Transforms/TransformInternals.cpp index c12fe6930f..e46eaf4d11 100644 --- a/lib/Transforms/TransformInternals.cpp +++ b/lib/Transforms/TransformInternals.cpp @@ -203,7 +203,7 @@ const Type *ConvertableToGEP(const Type *Ty, Value *OffsetVal, Expr.Var = IdxCast; } - if (Scale > ElSize) { // If we have to scale up our index, do so now + if (ScaleAmt) { // If we have to scale up our index, do so now Value *ScaleAmtVal = ConstantUInt::get(Type::UIntTy, ScaleAmt); Instruction *Scaler = BinaryOperator::create(Instruction::Mul, Expr.Var,ScaleAmtVal); |