Skip to content

Commit f704738

Browse files
[verify-uselistorder] Use llvm::is_sorted (NFC) (#145444)
We can pass a range to llvm::is_sorted.
1 parent 1247fdd commit f704738

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/verify-uselistorder/verify-uselistorder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ static void shuffleValueUseLists(Value *V, std::minstd_rand0 &Gen,
428428
<< ", U = ";
429429
U.getUser()->dump());
430430
}
431-
} while (std::is_sorted(V->use_begin(), V->use_end(), compareUses));
431+
} while (llvm::is_sorted(V->uses(), compareUses));
432432

433433
LLVM_DEBUG(dbgs() << " => shuffle\n");
434434
V->sortUseList(compareUses);

0 commit comments

Comments
 (0)