GCC fails to understand that NextBB is always initialized if EvaluateBlock
[oota-llvm.git] / lib / Transforms / IPO / GlobalOpt.cpp
index 7c78a2054487709e132c684e4c6907430b47dbbb..acb723e1cc894bb83684f3469b3f00ecc5d4d306 100644 (file)
@@ -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;