aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.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/Transforms/Utils/SimplifyCFG.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/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 9c7f90b..bccfb80 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -4905,7 +4905,7 @@ bool SimplifyCFGOpt::SimplifyBranchOnICmpChain(BranchInst *BI,
// There might be duplicate constants in the list, which the switch
// instruction can't handle, remove them now.
array_pod_sort(Values.begin(), Values.end(), ConstantIntSortPredicate);
- Values.erase(std::unique(Values.begin(), Values.end()), Values.end());
+ Values.erase(llvm::unique(Values), Values.end());
// If Extra was used, we require at least two switch values to do the
// transformation. A switch with one value is just a conditional branch.