mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Fix minor bug for shifts
llvm-svn: 1160
This commit is contained in:
parent
69d20ed13e
commit
a688655cba
@ -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…
Reference in New Issue
Block a user