projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9ece2a
)
Eliminate compilation warning on uninitialized variable.
author
Reid Spencer
<rspencer@reidspencer.com>
Fri, 22 Oct 2004 16:10:39 +0000
(16:10 +0000)
committer
Reid 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
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/SimplifyCFG.cpp
b/lib/Transforms/Utils/SimplifyCFG.cpp
index 2d2f51606e51a8c8938584a600aa900e2a23ecf5..38d66cbcb2e7efdd51b2d036e42499feddab8fa8 100644
(file)
--- 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);