[clang] [clang][fat-lto-objects] Make module flags match non-FatLTO pipelines (PR #83159)

Teresa Johnson via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 28 07:43:39 PST 2024


================
@@ -1036,7 +1041,8 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
   if (!actionRequiresCodeGen(Action) && CodeGenOpts.VerifyModule)
     MPM.addPass(VerifierPass());
 
-  if (Action == Backend_EmitBC || Action == Backend_EmitLL) {
+  if (Action == Backend_EmitBC || Action == Backend_EmitLL ||
+      CodeGenOpts.FatLTO) {
----------------
teresajohnson wrote:

I see, I guess then the check for the CodeGenOpt is needed here to catch this case.

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


More information about the cfe-commits mailing list