[flang-commits] [flang] 830a291 - [Flang] fix initializer with empty string to fix aarch64 build (#126918)
via flang-commits
flang-commits at lists.llvm.org
Wed Feb 12 06:56:06 PST 2025
Author: Scott Manley
Date: 2025-02-12T08:56:02-06:00
New Revision: 830a2911ee164e32a5459e2991233afb7168c812
URL: https://github.com/llvm/llvm-project/commit/830a2911ee164e32a5459e2991233afb7168c812
DIFF: https://github.com/llvm/llvm-project/commit/830a2911ee164e32a5459e2991233afb7168c812.diff
LOG: [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.
Added:
Modified:
flang/lib/Optimizer/Passes/Pipelines.cpp
Removed:
################################################################################
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);
}
More information about the flang-commits
mailing list