From: Chris Lattner Date: Sun, 13 Feb 2011 18:30:09 +0000 (+0000) Subject: remove a now-unneccesary cast. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e5116f840eedbc3cffa31adc683b4e37d53f2c7a;p=oota-llvm.git remove a now-unneccesary cast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125464 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/InstCombine/InstCombineCompares.cpp b/lib/Transforms/InstCombine/InstCombineCompares.cpp index dd2cb9ce0b2..67c97d24cc8 100644 --- a/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/lib/Transforms/InstCombine/InstCombineCompares.cpp @@ -1003,7 +1003,7 @@ Instruction *InstCombiner::FoldICmpShrCst(ICmpInst &ICI, BinaryOperator *Shr, // Otherwise, check to see if the bits shifted out are known to be zero. // If so, we can compare against the unshifted value: // (X & 4) >> 1 == 2 --> (X & 4) == 4. - if (Shr->hasOneUse() && cast(Shr)->isExact()) + if (Shr->hasOneUse() && Shr->isExact()) return new ICmpInst(ICI.getPredicate(), Shr->getOperand(0), ShiftedCmpRHS); if (Shr->hasOneUse()) {