diff options
author | Kazu Hirata <kazu@google.com> | 2024-08-04 23:46:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-04 23:46:34 -0700 |
commit | 1fa7f05b709748e8a36936cbb5508070c8214354 (patch) | |
tree | 812d47b079cb802b425d7b25545a56bcde715fe6 /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | |
parent | 120740b16c27c12ce989793c2e1a95ac564f25b8 (diff) | |
download | llvm-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.cpp | 2 |
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( |