diff options
-rw-r--r-- | clang-tools-extra/clangd/TUScheduler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/clangd/TUScheduler.cpp b/clang-tools-extra/clangd/TUScheduler.cpp index b51221d7d90..884c82d5b19 100644 --- a/clang-tools-extra/clangd/TUScheduler.cpp +++ b/clang-tools-extra/clangd/TUScheduler.cpp @@ -408,11 +408,11 @@ void ASTWorker::update(ParseInputs Inputs, WantDiagnostics WantDiags) { // Rebuild the preamble and the AST. StoreDiags CompilerInvocationDiagConsumer; std::vector<std::string> CC1Args; - std::unique_ptr<CompilerInvocation> Invocation = - buildCompilerInvocation(Inputs, CompilerInvocationDiagConsumer); + std::unique_ptr<CompilerInvocation> Invocation = buildCompilerInvocation( + Inputs, CompilerInvocationDiagConsumer, &CC1Args); // Log cc1 args even (especially!) if creating invocation failed. if (!CC1Args.empty()) - vlog("cc1 args: {0}", llvm::join(CC1Args, " ")); + vlog("Driver produced command: cc1 {0}", llvm::join(CC1Args, " ")); std::vector<Diag> CompilerInvocationDiags = CompilerInvocationDiagConsumer.take(); if (!Invocation) { |