diff options
author | Chris Lattner <sabre@nondot.org> | 2001-11-06 21:51:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-11-06 21:51:48 +0000 |
commit | 75747cd9e86eaf5a8fdb66cfffbf8c1fdcc4c48d (patch) | |
tree | 2b0e558bb834de14f93b4f879d099c7b6147c6dc | |
parent | 268de0464ee9f0938bfa145fdd5e7f1a46b21cf7 (diff) |
Fix minor bug for shifts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1160 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/ExprTypeConvert.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Transforms/ExprTypeConvert.cpp b/lib/Transforms/ExprTypeConvert.cpp index 06added377..d8f6519bab 100644 --- a/lib/Transforms/ExprTypeConvert.cpp +++ b/lib/Transforms/ExprTypeConvert.cpp @@ -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: { |