Skip to content

Commit de64e6f

Browse files
committed
update check on empty vector
1 parent 046ddd4 commit de64e6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/MachineOutliner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ void MachineOutliner::findCandidates(
620620
// * End before the other starts
621621
// * Start after the other ends
622622
unsigned EndIdx = StartIdx + StringLen - 1;
623-
if (CandidatesForRepeatedSeq.size() > 0 &&
623+
if (!CandidatesForRepeatedSeq.empty() &&
624624
StartIdx <= CandidatesForRepeatedSeq.back().getEndIdx()) {
625625
#ifndef NDEBUG
626626
++NumDiscarded;

0 commit comments

Comments
 (0)