aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-03-30 18:43:02 -0700
committerGitHub <noreply@github.com>2025-03-30 18:43:02 -0700
commit6257621f41d1deb31cfbfcee993a75991a0bca13 (patch)
tree1a63b0df7bdb26cabffdbaf126029e9e9ae14b59 /llvm/lib/Support/CommandLine.cpp
parent94122d58fc77079a291a3d008914006cb509d9db (diff)
downloadllvm-6257621f41d1deb31cfbfcee993a75991a0bca13.zip
llvm-6257621f41d1deb31cfbfcee993a75991a0bca13.tar.gz
llvm-6257621f41d1deb31cfbfcee993a75991a0bca13.tar.bz2
[llvm] Use llvm::append_range (NFC) (#133658)
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index e34a770..f1dd39c 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -2435,8 +2435,8 @@ protected:
// Collect registered option categories into vector in preparation for
// sorting.
- for (OptionCategory *Category : GlobalParser->RegisteredOptionCategories)
- SortedCategories.push_back(Category);
+ llvm::append_range(SortedCategories,
+ GlobalParser->RegisteredOptionCategories);
// Sort the different option categories alphabetically.
assert(SortedCategories.size() > 0 && "No option categories registered!");