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/Transforms/Utils/SimplifyCFG.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/Transforms/Utils/SimplifyCFG.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 2 |
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. |
