1
0
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:
Chris Lattner 2001-11-06 21:51:48 +00:00
parent 69d20ed13e
commit a688655cba

View File

@ -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: {