aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/RegisterScavenging.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-01-16 09:40:54 -0800
committerKazu Hirata <kazu@google.com>2021-01-16 09:40:55 -0800
commit2082b10d100e8dbaffc2ba8f497db5d2ab61beb2 (patch)
treebd4009ec1be75af68d9afb9fdcf525e0d56ca73e /llvm/lib/CodeGen/RegisterScavenging.cpp
parent19aacdb715aea1de56a47b807a555335610a11c2 (diff)
downloadllvm-2082b10d100e8dbaffc2ba8f497db5d2ab61beb2.zip
llvm-2082b10d100e8dbaffc2ba8f497db5d2ab61beb2.tar.gz
llvm-2082b10d100e8dbaffc2ba8f497db5d2ab61beb2.tar.bz2
[llvm] Use *::empty (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/RegisterScavenging.cpp')
-rw-r--r--llvm/lib/CodeGen/RegisterScavenging.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegisterScavenging.cpp b/llvm/lib/CodeGen/RegisterScavenging.cpp
index 93e8e27..a833895 100644
--- a/llvm/lib/CodeGen/RegisterScavenging.cpp
+++ b/llvm/lib/CodeGen/RegisterScavenging.cpp
@@ -91,7 +91,7 @@ void RegScavenger::enterBasicBlockEnd(MachineBasicBlock &MBB) {
LiveUnits.addLiveOuts(MBB);
// Move internal iterator at the last instruction of the block.
- if (MBB.begin() != MBB.end()) {
+ if (!MBB.empty()) {
MBBI = std::prev(MBB.end());
Tracking = true;
}