summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-18 05:25:20 +0000
committerChris Lattner <sabre@nondot.org>2005-09-18 05:25:20 +0000
commit4ebc8ab4e0bb69dd7abfe04f80e49e5f217cdeb9 (patch)
treee1e9265d8b1df068ec5a9f025ffb0bc97f07b850 /llvm/lib/Transforms
parente5b23a6d678f7214a39961d205d97b921470ede4 (diff)
downloadbcm5719-llvm-4ebc8ab4e0bb69dd7abfe04f80e49e5f217cdeb9.tar.gz
bcm5719-llvm-4ebc8ab4e0bb69dd7abfe04f80e49e5f217cdeb9.zip
fix typeo
llvm-svn: 23383
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 63d77685a71..37e1f3f6ba4 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -3387,7 +3387,7 @@ Instruction *InstCombiner::visitShiftInst(ShiftInst &I) {
if (isLeftShift && XS->hasOneUse() && XS->getOperand(1) == CUI &&
XS->getOpcode() == Instruction::Shr) {
Instruction *YS = new ShiftInst(Instruction::Shl,
- Op0BO->getOperand(0), CUI,
+ Op0BO->getOperand(1), CUI,
Op0BO->getName());
InsertNewInstBefore(YS, I); // (Y << C)
Instruction *X = BinaryOperator::create(Op0BO->getOpcode(), YS,
OpenPOWER on IntegriCloud