Skip to content

Commit 566f315

Browse files
kazutakahirataAnthony Tran
authored andcommitted
[verify-uselistorder] Use llvm::is_sorted (NFC) (llvm#145444)
We can pass a range to llvm::is_sorted.
1 parent 31a5e2e commit 566f315

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)