mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 23:20:41 +00:00
Fix bug that caused invalid transformations to be applied
llvm-svn: 1426
This commit is contained in:
parent
d89106f96b
commit
e23b6591f9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user