From 4e073a871b208a2c9dfa004b3a93fb26f96daa17 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Fri, 22 Oct 2004 16:10:39 +0000 Subject: [PATCH] Eliminate compilation warning on uninitialized variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17163 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/SimplifyCFG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.34.1