diff options
author | Kazu Hirata <kazu@google.com> | 2024-06-14 22:49:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-14 22:49:36 -0700 |
commit | 7c6d0d26b1792fdf437b3e33b98c55fee9b06516 (patch) | |
tree | cd8fd684a0a10051b9a455c55d64f17f06313ae6 /llvm/lib/ProfileData/InstrProfWriter.cpp | |
parent | bb3091a6f3fb2b983fc3e0f539ff1d979ea470ac (diff) | |
download | llvm-7c6d0d26b1792fdf437b3e33b98c55fee9b06516.zip llvm-7c6d0d26b1792fdf437b3e33b98c55fee9b06516.tar.gz llvm-7c6d0d26b1792fdf437b3e33b98c55fee9b06516.tar.bz2 |
[llvm] Use llvm::unique (NFC) (#95628)
Diffstat (limited to 'llvm/lib/ProfileData/InstrProfWriter.cpp')
-rw-r--r-- | llvm/lib/ProfileData/InstrProfWriter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/ProfileData/InstrProfWriter.cpp b/llvm/lib/ProfileData/InstrProfWriter.cpp index 7cf4704..cf2416c 100644 --- a/llvm/lib/ProfileData/InstrProfWriter.cpp +++ b/llvm/lib/ProfileData/InstrProfWriter.cpp @@ -920,8 +920,7 @@ Error InstrProfWriter::writeImpl(ProfOStream &OS) { // Remove duplicate binary ids. llvm::sort(BinaryIds); - BinaryIds.erase(std::unique(BinaryIds.begin(), BinaryIds.end()), - BinaryIds.end()); + BinaryIds.erase(llvm::unique(BinaryIds), BinaryIds.end()); for (const auto &BI : BinaryIds) { // Increment by binary id length data type size. |