Silence a compiler warning.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 20 Aug 2008 23:36:48 +0000 (23:36 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 20 Aug 2008 23:36:48 +0000 (23:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55087 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index 403d6aad3b164d80076e68e04cbcf9eb0ac7744e..bc77ad5bf2b52257b33d5677a4452973d37e4171 100644 (file)
@@ -3594,7 +3594,8 @@ Instruction *InstCombiner::visitAnd(BinaryOperator &I) {
     // where C is a power of 2
     Value *A, *B;
     ConstantInt *C1, *C2;
-    ICmpInst::Predicate LHSCC, RHSCC;
+    ICmpInst::Predicate LHSCC = ICmpInst::BAD_ICMP_PREDICATE;
+    ICmpInst::Predicate RHSCC = ICmpInst::BAD_ICMP_PREDICATE;
     if (match(&I, m_And(m_ICmp(LHSCC, m_Value(A), m_ConstantInt(C1)),
                         m_ICmp(RHSCC, m_Value(B), m_ConstantInt(C2)))))
       if (C1 == C2 && LHSCC == RHSCC && LHSCC == ICmpInst::ICMP_ULT &&