1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

GCC fails to understand that NextBB is always initialized if EvaluateBlock

returns 'true' and emits a warning.  Help it out.

llvm-svn: 151242
This commit is contained in:
Duncan Sands 2012-02-23 08:23:06 +00:00
parent c378c75761
commit e464a297f9

View 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;