Fix bug that caused invalid transformations to be applied

llvm-svn: 1426
This commit is contained in:
Chris Lattner 2001-12-06 18:05:55 +00:00
parent d89106f96b
commit e23b6591f9

View File

@ -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);