[clang] [clang][deps] Store common, partially-formed invocation (PR #65677)

Ben Langmuir via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 7 14:53:31 PDT 2023


================
@@ -117,14 +112,37 @@ ModuleDepCollector::makeInvocationForModuleBuildWithoutOutputs(
   CI.getFrontendOpts().ARCMTAction = FrontendOptions::ARCMT_None;
   CI.getFrontendOpts().ObjCMTAction = FrontendOptions::ObjCMT_None;
   CI.getFrontendOpts().MTMigrateDir.clear();
-  CI.getLangOpts().ModuleName = Deps.ID.ModuleName;
----------------
benlangmuir wrote:

We could clear this string to make sure it won't get copied.

https://github.com/llvm/llvm-project/pull/65677


More information about the cfe-commits mailing list