[clang] Reset CodeGenOptions fields for clean module/PCH builds (PR #138256)

Michael Spencer via cfe-commits cfe-commits at lists.llvm.org
Tue May 6 11:33:56 PDT 2025


================
@@ -209,20 +209,21 @@ void ModuleDepCollector::addOutputPaths(CowCompilerInvocation &CI,
 void dependencies::resetBenignCodeGenOptions(frontend::ActionKind ProgramAction,
                                              const LangOptions &LangOpts,
                                              CodeGenOptions &CGOpts) {
-  // TODO: Figure out better way to set options to their default value.
----------------
Bigcheese wrote:

This comment is talking about setting it to the default value it would have if no argument is passed, which for these cases is empty, but not all options default to empty.

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


More information about the cfe-commits mailing list