From: Nick Lewycky Date: Fri, 27 Feb 2009 06:37:39 +0000 (+0000) Subject: Silence compiler warning about use of uninitialized variables (in reality these X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=579214a39a45a85a86599b2839b907397165a97d;p=oota-llvm.git Silence compiler warning about use of uninitialized variables (in reality these are always set by reference on the path that uses them.) No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65621 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 61ca5de5b86..8e91b36d5d1 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -5822,7 +5822,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) { // See if we are doing a comparison with a constant. if (ConstantInt *CI = dyn_cast(Op1)) { - Value *A, *B; + Value *A = 0, *B = 0; // (icmp ne/eq (sub A B) 0) -> (icmp ne/eq A, B) if (I.isEquality() && CI->isNullValue() &&