projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
268de04
)
Fix minor bug for shifts
author
Chris Lattner
<sabre@nondot.org>
Tue, 6 Nov 2001 21:51:48 +0000
(21:51 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 6 Nov 2001 21:51:48 +0000
(21:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1160
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/ExprTypeConvert.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/ExprTypeConvert.cpp
b/lib/Transforms/ExprTypeConvert.cpp
index 06added3770ec2e0a2542454352c06326055eca8..d8f6519bab842feb833e94575f76dc660f06a6e4 100644
(file)
--- 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: {