diff options
author | Kazu Hirata <kazu@google.com> | 2021-09-19 13:44:23 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-09-19 13:44:23 -0700 |
commit | 84b07c9b3aa79e073a97290bdd30d98b1941a536 (patch) | |
tree | d2762dca188af521ff1ef93fadac961fa8f295c3 /llvm/lib/CodeGen/ReachingDefAnalysis.cpp | |
parent | 5ba8020326a522c0dfa32f59a472fe20bee4908a (diff) | |
download | llvm-84b07c9b3aa79e073a97290bdd30d98b1941a536.zip llvm-84b07c9b3aa79e073a97290bdd30d98b1941a536.tar.gz llvm-84b07c9b3aa79e073a97290bdd30d98b1941a536.tar.bz2 |
[llvm] Use pop_back_val (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/ReachingDefAnalysis.cpp')
-rw-r--r-- | llvm/lib/CodeGen/ReachingDefAnalysis.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/ReachingDefAnalysis.cpp b/llvm/lib/CodeGen/ReachingDefAnalysis.cpp index 34e9a2f..1264e60 100644 --- a/llvm/lib/CodeGen/ReachingDefAnalysis.cpp +++ b/llvm/lib/CodeGen/ReachingDefAnalysis.cpp @@ -397,8 +397,7 @@ void ReachingDefAnalysis::getGlobalUses(MachineInstr *MI, MCRegister PhysReg, SmallVector<MachineBasicBlock *, 4> ToVisit(MBB->successors()); SmallPtrSet<MachineBasicBlock*, 4>Visited; while (!ToVisit.empty()) { - MachineBasicBlock *MBB = ToVisit.back(); - ToVisit.pop_back(); + MachineBasicBlock *MBB = ToVisit.pop_back_val(); if (Visited.count(MBB) || !MBB->isLiveIn(PhysReg)) continue; if (getLiveInUses(MBB, PhysReg, Uses)) |