summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-04-01 20:15:16 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-04-01 20:15:16 +0000
commitac2d5657a6946913596c90090e7b925245265310 (patch)
tree72ae50940b9addcc84c79de39578d9de53899819 /llvm/lib/Transforms
parentd121765e6452c11ce17714feb2caa2d154d5e22b (diff)
downloadbcm5719-llvm-ac2d5657a6946913596c90090e7b925245265310.tar.gz
bcm5719-llvm-ac2d5657a6946913596c90090e7b925245265310.zip
Fix build.
llvm-svn: 128733
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
index d2ab61845f2..77ad8289585 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
@@ -912,7 +912,8 @@ Instruction *InstCombiner::transformSExtICmp(ICmpInst *ICI, Instruction &CI) {
APInt TypeMask(APInt::getAllOnesValue(BitWidth));
ComputeMaskedBits(Op0, TypeMask, KnownZero, KnownOne);
- if ((~KnownZero).isPowerOf2()) {
+ APInt KnownZeroMask(~KnownZero);
+ if (KnownZeroMask.isPowerOf2()) {
Value *In = ICI->getOperand(0);
if (!Op1C->isZero() == (Pred == ICmpInst::ICMP_NE)) {
OpenPOWER on IntegriCloud