Skip to content

Commit 70fc239

Browse files
committed
RegisterPressure: Check empty instead of size == 0
1 parent 315a831 commit 70fc239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/RegisterPressure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ void RegPressureTracker::bumpUpwardPressure(const MachineInstr *MI) {
10411041
// Account for register pressure similar to RegPressureTracker::recede().
10421042
RegisterOperands RegOpers;
10431043
RegOpers.collect(*MI, *TRI, *MRI, TrackLaneMasks, /*IgnoreDead=*/true);
1044-
assert(RegOpers.DeadDefs.size() == 0);
1044+
assert(RegOpers.DeadDefs.empty());
10451045
if (TrackLaneMasks)
10461046
RegOpers.adjustLaneLiveness(*LIS, *MRI, SlotIdx);
10471047
else if (RequireIntervals)

0 commit comments

Comments
 (0)