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:
parent
c378c75761
commit
e464a297f9
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user