aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-08-04 23:46:34 -0700
committerGitHub <noreply@github.com>2024-08-04 23:46:34 -0700
commit1fa7f05b709748e8a36936cbb5508070c8214354 (patch)
tree812d47b079cb802b425d7b25545a56bcde715fe6 /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
parent120740b16c27c12ce989793c2e1a95ac564f25b8 (diff)
downloadllvm-1fa7f05b709748e8a36936cbb5508070c8214354.zip
llvm-1fa7f05b709748e8a36936cbb5508070c8214354.tar.gz
llvm-1fa7f05b709748e8a36936cbb5508070c8214354.tar.bz2
[clang] Construct SmallVector with ArrayRef (NFC) (#101898)
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
-rw-r--r--clang/lib/Frontend/CreateInvocationFromCommandLine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp b/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
index 1df3a12..638757a 100644
--- a/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
+++ b/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
@@ -34,7 +34,7 @@ clang::createInvocation(ArrayRef<const char *> ArgList,
? std::move(Opts.Diags)
: CompilerInstance::createDiagnostics(new DiagnosticOptions);
- SmallVector<const char *, 16> Args(ArgList.begin(), ArgList.end());
+ SmallVector<const char *, 16> Args(ArgList);
// FIXME: Find a cleaner way to force the driver into restricted modes.
Args.insert(