aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-08-20 23:36:48 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-08-20 23:36:48 +0000
commitab5d5e360e975e4ce038d3527396d3113102e980 (patch)
tree7cff8bd31e0381466a62637e5e6b0d394ff4cba9
parent83785c80968165b30fcdd111ceb2c28d38bcff86 (diff)
downloadexternal_llvm-ab5d5e360e975e4ce038d3527396d3113102e980.zip
external_llvm-ab5d5e360e975e4ce038d3527396d3113102e980.tar.gz
external_llvm-ab5d5e360e975e4ce038d3527396d3113102e980.tar.bz2
Silence a compiler warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55087 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index 403d6aa..bc77ad5 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -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 &&