diff options
Diffstat (limited to 'src/jit/dataflow.h')
-rw-r--r-- | src/jit/dataflow.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/jit/dataflow.h b/src/jit/dataflow.h index c9803a0cc1..615a5d1494 100644 --- a/src/jit/dataflow.h +++ b/src/jit/dataflow.h @@ -70,11 +70,9 @@ void DataFlow::ForwardAnalysis(TCallback& callback) if (callback.EndMerge(block)) { - AllSuccessorIter succsBegin = block->GetAllSuccs(m_pCompiler).begin(); - AllSuccessorIter succsEnd = block->GetAllSuccs(m_pCompiler).end(); - for (AllSuccessorIter succ = succsBegin; succ != succsEnd; ++succ) + for (BasicBlock* succ : block->GetAllSuccs(m_pCompiler)) { - worklist.insert(worklist.end(), *succ); + worklist.insert(worklist.end(), succ); } } } |