diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-16 23:28:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-16 23:28:04 +0000 |
commit | 79a564caa7f936bf1bb2dcbf17a1244fca20d02e (patch) | |
tree | f59cfd46543ec1c78aaffe8bf4c8880be5da0a92 | |
parent | 2d4c98d79b5526aaf94b87d21a7d672f35b183a9 (diff) |
Fix a type violation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17069 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 91aebc1efd..6aef136cf5 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -2516,7 +2516,7 @@ Instruction *InstCombiner::visitShiftInst(ShiftInst &I) { if (isa<UndefValue>(Op0)) { // undef >>s X -> undef if (!isLeftShift && I.getType()->isSigned()) - return ReplaceInstUsesWith(I, Op1); + return ReplaceInstUsesWith(I, Op0); else // undef << X -> 0 AND undef >>u X -> 0 return ReplaceInstUsesWith(I, Constant::getNullValue(I.getType())); } |