aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineSink.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2020-12-31 09:39:11 -0800
committerKazu Hirata <kazu@google.com>2020-12-31 09:39:11 -0800
commit7bc76fd0ec40ae20b6d456e2d6e7c328615ed718 (patch)
treefdc2ca1cea9b55be3be2dd83b1bb9af50057c0bc /llvm/lib/CodeGen/MachineSink.cpp
parentf904b46b1a965013a51854fafbb63763617e33b3 (diff)
downloadllvm-7bc76fd0ec40ae20b6d456e2d6e7c328615ed718.zip
llvm-7bc76fd0ec40ae20b6d456e2d6e7c328615ed718.tar.gz
llvm-7bc76fd0ec40ae20b6d456e2d6e7c328615ed718.tar.bz2
[CodeGen] Construct SmallVector with iterator ranges (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/MachineSink.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineSink.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineSink.cpp b/llvm/lib/CodeGen/MachineSink.cpp
index 265ca6d..48ed8b0 100644
--- a/llvm/lib/CodeGen/MachineSink.cpp
+++ b/llvm/lib/CodeGen/MachineSink.cpp
@@ -745,8 +745,7 @@ MachineSinking::GetAllSortedSuccessors(MachineInstr &MI, MachineBasicBlock *MBB,
if (Succs != AllSuccessors.end())
return Succs->second;
- SmallVector<MachineBasicBlock *, 4> AllSuccs(MBB->succ_begin(),
- MBB->succ_end());
+ SmallVector<MachineBasicBlock *, 4> AllSuccs(MBB->successors());
// Handle cases where sinking can happen but where the sink point isn't a
// successor. For example: