mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-15 13:40:33 +00:00
Fix minor bug for shifts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1160 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
268de0464e
commit
75747cd9e8
@ -190,9 +190,10 @@ static Value *ConvertExpressionToType(Value *V, const Type *Ty,
|
||||
|
||||
case Instruction::Shl:
|
||||
case Instruction::Shr:
|
||||
Res = new ShiftInst(cast<ShiftInst>(I)->getOpcode(),
|
||||
ConvertExpressionToType(I->getOperand(0), Ty, VMC),
|
||||
Res = new ShiftInst(cast<ShiftInst>(I)->getOpcode(), Dummy,
|
||||
I->getOperand(1), Name);
|
||||
VMC.ExprMap[I] = Res;
|
||||
Res->setOperand(0, ConvertExpressionToType(I->getOperand(0), Ty, VMC));
|
||||
break;
|
||||
|
||||
case Instruction::Load: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user