diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-09-19 22:10:20 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-09-19 22:10:20 +0000 |
commit | 399a4e9b0b6a1d31b66ef554d186512e45cfc89f (patch) | |
tree | 4019a5e3177d050ce5858b9e9770613485d5c1cc /llvm/lib/CodeGen/SelectionDAG | |
parent | 6888dbcda7890b28ae31056cf72addbff5a381a2 (diff) | |
download | bcm5719-llvm-399a4e9b0b6a1d31b66ef554d186512e45cfc89f.tar.gz bcm5719-llvm-399a4e9b0b6a1d31b66ef554d186512e45cfc89f.zip |
CodeGen: use range based for loops (NFC)
Simplify the RPOT traversal by using a range based for loop for the
iterator dereference.
llvm-svn: 313687
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 48dc09339a6..9acaa446447 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -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); |