mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-04 16:47:41 +00:00
CodeGen: use range based for loops (NFC)
Simplify the RPOT traversal by using a range based for loop for the iterator dereference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313687 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8451f3b13d
commit
54c2f80375
@ -1182,12 +1182,7 @@ static void propagateSwiftErrorVRegs(FunctionLoweringInfo *FuncInfo) {
|
||||
|
||||
// For each machine basic block in reverse post order.
|
||||
ReversePostOrderTraversal<MachineFunction *> RPOT(FuncInfo->MF);
|
||||
for (ReversePostOrderTraversal<MachineFunction *>::rpo_iterator
|
||||
It = RPOT.begin(),
|
||||
E = RPOT.end();
|
||||
It != E; ++It) {
|
||||
MachineBasicBlock *MBB = *It;
|
||||
|
||||
for (MachineBasicBlock *MBB : RPOT) {
|
||||
// For each swifterror value in the function.
|
||||
for(const auto *SwiftErrorVal : FuncInfo->SwiftErrorVals) {
|
||||
auto Key = std::make_pair(MBB, SwiftErrorVal);
|
||||
|
Loading…
x
Reference in New Issue
Block a user