OSDN Git Service

Silence compiler warning about use of uninitialized variables (in reality these
authorNick Lewycky <nicholas@mxc.ca>
Fri, 27 Feb 2009 06:37:39 +0000 (06:37 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 27 Feb 2009 06:37:39 +0000 (06:37 +0000)
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

lib/Transforms/Scalar/InstructionCombining.cpp

index 61ca5de..8e91b36 100644 (file)
@@ -5822,7 +5822,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
 
   // See if we are doing a comparison with a constant.
   if (ConstantInt *CI = dyn_cast<ConstantInt>(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() &&