aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/PHIElimination.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/PHIElimination.cpp
parent19aacdb715aea1de56a47b807a555335610a11c2 (diff)
downloadllvm-2082b10d100e8dbaffc2ba8f497db5d2ab61beb2.zip
llvm-2082b10d100e8dbaffc2ba8f497db5d2ab61beb2.tar.gz
llvm-2082b10d100e8dbaffc2ba8f497db5d2ab61beb2.tar.bz2
[llvm] Use *::empty (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/PHIElimination.cpp')
-rw-r--r--llvm/lib/CodeGen/PHIElimination.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/PHIElimination.cpp b/llvm/lib/CodeGen/PHIElimination.cpp
index c486319..8148b64 100644
--- a/llvm/lib/CodeGen/PHIElimination.cpp
+++ b/llvm/lib/CodeGen/PHIElimination.cpp
@@ -394,8 +394,7 @@ void PHIElimination::LowerPHINode(MachineBasicBlock &MBB,
}
LiveInterval &DestLI = LIS->getInterval(DestReg);
- assert(DestLI.begin() != DestLI.end() &&
- "PHIs should have nonempty LiveIntervals.");
+ assert(!DestLI.empty() && "PHIs should have nonempty LiveIntervals.");
if (DestLI.endIndex().isDead()) {
// A dead PHI's live range begins and ends at the start of the MBB, but
// the lowered copy, which will still be dead, needs to begin and end at