From: Reid Spencer Date: Fri, 22 Oct 2004 16:10:39 +0000 (+0000) Subject: Eliminate compilation warning on uninitialized variable. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=4e073a871b208a2c9dfa004b3a93fb26f96daa17;p=oota-llvm.git Eliminate compilation warning on uninitialized variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17163 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 2d2f51606e5..38d66cbcb2e 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -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(BB->begin()); BasicBlock *Pred = PN->getIncomingBlock(0);