Fix minor bug for shifts

llvm-svn: 1160
This commit is contained in:
Chris Lattner 2001-11-06 21:51:48 +00:00
parent 2f2d947f73
commit 6c4681ca28
1 changed files with 3 additions and 2 deletions

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