From 4ebc8ab4e0bb69dd7abfe04f80e49e5f217cdeb9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 18 Sep 2005 05:25:20 +0000 Subject: [PATCH] fix typeo llvm-svn: 23383 --- llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 63d77685a710..37e1f3f6ba45 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,