aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-04-03 23:29:39 +0000
committerChris Lattner <sabre@nondot.org>2007-04-03 23:29:39 +0000
commit7305084156b6edc4d4b12e3c9d5f7f6609d38e70 (patch)
tree60de89289c09f4dbe168dea8c554a61af48d66fb /lib
parentef4c916193e49e20c492f73147b3872b01c23862 (diff)
Fix a bug I introduced with my patch yesterday which broke Qt (I converted
some constant exprs to apints). Thanks to Anton for tracking down a small testcase that triggered this! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35633 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index a20bf8dc73..d26fbced5b 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -5087,7 +5087,7 @@ Instruction *InstCombiner::visitICmpInstWithInstAndIntCst(ICmpInst &ICI,
Mask, LHSI->getName()+".mask");
Value *And = InsertNewInstBefore(AndI, ICI);
return new ICmpInst(ICI.getPredicate(), And,
- ConstantInt::get(RHSV << ShAmtVal));
+ ConstantInt::get(RHSV.lshr(ShAmtVal)));
}
}
}