aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAlexandre Ganea <alexandre.ganea@legionlabs.com>2021-12-21 17:41:26 -0500
committerAlexandre Ganea <alexandre.ganea@legionlabs.com>2021-12-21 17:41:35 -0500
commitd26520f6f78785b0c4c296a8a992f2adb656c6ec (patch)
treef65ee8efb92924d85a7ee596c72c88155006e045 /clang/lib/Frontend/CompilerInvocation.cpp
parentbeff71520b5be766ef06a0e0c1e67629fa39f429 (diff)
downloadllvm-d26520f6f78785b0c4c296a8a992f2adb656c6ec.zip
llvm-d26520f6f78785b0c4c296a8a992f2adb656c6ec.tar.gz
llvm-d26520f6f78785b0c4c296a8a992f2adb656c6ec.tar.bz2
[Clang] Own the CommandLineArgs in CodeGenOptions
Fixes PR52704 : https://github.com/llvm/llvm-project/issues/52704 Differential Revision: https://reviews.llvm.org/D116011
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 106da64..b71addd8 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -4518,7 +4518,7 @@ bool CompilerInvocation::CreateFromArgsImpl(
// Store the command-line for using in the CodeView backend.
Res.getCodeGenOpts().Argv0 = Argv0;
- Res.getCodeGenOpts().CommandLineArgs = CommandLineArgs;
+ append_range(Res.getCodeGenOpts().CommandLineArgs, CommandLineArgs);
FixupInvocation(Res, Diags, Args, DashX);