mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
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
This commit is contained in:
parent
4753bf21a4
commit
26a408ab9a
@ -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