Skip to content

Commit efd2bf0

Browse files
rscottmanleyflovent
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 9bd4c7e commit efd2bf0

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)