Eliminate compilation warning on uninitialized variable.
authorReid Spencer <rspencer@reidspencer.com>
Fri, 22 Oct 2004 16:10:39 +0000 (16:10 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 22 Oct 2004 16:10:39 +0000 (16:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17163 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/SimplifyCFG.cpp

index 2d2f51606e51a8c8938584a600aa900e2a23ecf5..38d66cbcb2e7efdd51b2d036e42499feddab8fa8 100644 (file)
@@ -1172,7 +1172,7 @@ bool llvm::SimplifyCFG(BasicBlock *BB) {
         // instructions in the predecessor blocks can be promoted as well.  If
         // not, we won't be able to get rid of the control flow, so it's not
         // worth promoting to select instructions.
-        BasicBlock *DomBlock, *IfBlock1 = 0, *IfBlock2 = 0;
+        BasicBlock *DomBlock = 0, *IfBlock1 = 0, *IfBlock2 = 0;
         if (CanPromote) {
           PN = cast<PHINode>(BB->begin());
           BasicBlock *Pred = PN->getIncomingBlock(0);