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 | b1995e1e69851f4a268f93150c17c06442ee1265 (patch) | |
| tree | 7c645835b761b7532da57facf78880554a4cc131 /llvm/lib/Transforms | |
| parent | 674394077fe37ffb9b7d94b24d565bf844426c4b (diff) | |
| download | bcm5719-llvm-b1995e1e69851f4a268f93150c17c06442ee1265.tar.gz bcm5719-llvm-b1995e1e69851f4a268f93150c17c06442ee1265.zip  | |
Fix bug that caused invalid transformations to be applied
llvm-svn: 1426
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/TransformInternals.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/TransformInternals.cpp b/llvm/lib/Transforms/TransformInternals.cpp index c12fe6930fa..e46eaf4d11d 100644 --- a/llvm/lib/Transforms/TransformInternals.cpp +++ b/llvm/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);  | 

