diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-10-22 16:10:39 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-10-22 16:10:39 +0000 |
commit | 4e073a871b208a2c9dfa004b3a93fb26f96daa17 (patch) | |
tree | 2f3c571930629f2ddbe93a71ce175c4aaee4725d | |
parent | e9ece2a7462c29f2c57c0b0e063f950514f41ab4 (diff) | |
download | external_llvm-4e073a871b208a2c9dfa004b3a93fb26f96daa17.zip external_llvm-4e073a871b208a2c9dfa004b3a93fb26f96daa17.tar.gz external_llvm-4e073a871b208a2c9dfa004b3a93fb26f96daa17.tar.bz2 |
Eliminate compilation warning on uninitialized variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17163 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Utils/SimplifyCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 2d2f516..38d66cb 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<PHINode>(BB->begin()); BasicBlock *Pred = PN->getIncomingBlock(0); |