projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
GCC fails to understand that NextBB is always initialized if EvaluateBlock
[oota-llvm.git]
/
lib
/
Transforms
/
IPO
/
GlobalOpt.cpp
diff --git
a/lib/Transforms/IPO/GlobalOpt.cpp
b/lib/Transforms/IPO/GlobalOpt.cpp
index 7c78a2054487709e132c684e4c6907430b47dbbb..acb723e1cc894bb83684f3469b3f00ecc5d4d306 100644
(file)
--- a/
lib/Transforms/IPO/GlobalOpt.cpp
+++ b/
lib/Transforms/IPO/GlobalOpt.cpp
@@
-2645,7
+2645,7
@@
bool Evaluator::EvaluateFunction(Function *F, Constant *&RetVal,
BasicBlock::iterator CurInst = CurBB->begin();
while (1) {
- BasicBlock *NextBB
;
+ BasicBlock *NextBB
= 0; // Initialized to avoid compiler warnings.
if (!EvaluateBlock(CurInst, NextBB))
return false;