aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/InstrProfWriter.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-06-14 22:49:36 -0700
committerGitHub <noreply@github.com>2024-06-14 22:49:36 -0700
commit7c6d0d26b1792fdf437b3e33b98c55fee9b06516 (patch)
treecd8fd684a0a10051b9a455c55d64f17f06313ae6 /llvm/lib/ProfileData/InstrProfWriter.cpp
parentbb3091a6f3fb2b983fc3e0f539ff1d979ea470ac (diff)
downloadllvm-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.cpp3
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.