diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index c7359c4de76..2c73e7ae0fe 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -6452,7 +6452,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {      //   if (X) ...      // For generality, we handle any zero-extension of any operand comparison      // with a constant or another cast from the same type. -    if (isa<ConstantInt>(Op1) || isa<CastInst>(Op1)) +    if (isa<Constant>(Op1) || isa<CastInst>(Op1))        if (Instruction *R = visitICmpInstWithCastAndCast(I))          return R;    } | 

