Skip to content

Commit a52f7ad

Browse files
rscottmanleysivan-shani
authored andcommitted
[Flang] fix initializer with empty string to fix aarch64 build (llvm#126918)
After tuneCPU was changed to std::string in c8376a9 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.
1 parent 0368847 commit a52f7ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/lib/Optimizer/Passes/Pipelines.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@ void createDefaultFIRCodeGenPassPipeline(mlir::PassManager &pm,
325325

326326
pm.addPass(fir::createFunctionAttr(
327327
{framePointerKind, config.NoInfsFPMath, config.NoNaNsFPMath,
328-
config.ApproxFuncFPMath, config.NoSignedZerosFPMath,
329-
config.UnsafeFPMath}));
328+
config.ApproxFuncFPMath, config.NoSignedZerosFPMath, config.UnsafeFPMath,
329+
""}));
330330

331331
fir::addFIRToLLVMPass(pm, config);
332332
}

0 commit comments

Comments
 (0)