From 830a2911ee164e32a5459e2991233afb7168c812 Mon Sep 17 00:00:00 2001 From: Scott Manley Date: Wed, 12 Feb 2025 08:56:02 -0600 Subject: [PATCH] [Flang] fix initializer with empty string to fix aarch64 build (#126918) After tuneCPU was changed to std::string in c8376a93bb9853cbcedeb22d80a9b200060eaf85 the flang builds broke, due to a missing initializer. If we want to add tuneCPU to the MLIRToLLVMPassPipelineConfig, we might want to tackle that separately after the build is restored. This should be no different than the previous behaviour. --- flang/lib/Optimizer/Passes/Pipelines.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flang/lib/Optimizer/Passes/Pipelines.cpp b/flang/lib/Optimizer/Passes/Pipelines.cpp index d55ad9e603ffa..a5cda3b7cb875 100644 --- a/flang/lib/Optimizer/Passes/Pipelines.cpp +++ b/flang/lib/Optimizer/Passes/Pipelines.cpp @@ -325,8 +325,8 @@ void createDefaultFIRCodeGenPassPipeline(mlir::PassManager &pm, pm.addPass(fir::createFunctionAttr( {framePointerKind, config.NoInfsFPMath, config.NoNaNsFPMath, - config.ApproxFuncFPMath, config.NoSignedZerosFPMath, - config.UnsafeFPMath})); + config.ApproxFuncFPMath, config.NoSignedZerosFPMath, config.UnsafeFPMath, + ""})); fir::addFIRToLLVMPass(pm, config); }