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/CodeGen/CodeGenPrepare.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/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 0e01080..bb2c76d 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -6271,9 +6271,7 @@ bool CodeGenPrepare::splitLargeGEPOffsets() { }; // Sorting all the GEPs of the same data structures based on the offsets. llvm::sort(LargeOffsetGEPs, compareGEPOffset); - LargeOffsetGEPs.erase( - std::unique(LargeOffsetGEPs.begin(), LargeOffsetGEPs.end()), - LargeOffsetGEPs.end()); + LargeOffsetGEPs.erase(llvm::unique(LargeOffsetGEPs), LargeOffsetGEPs.end()); // Skip if all the GEPs have the same offsets. if (LargeOffsetGEPs.front().second == LargeOffsetGEPs.back().second) continue; |