================
@@ -117,13 +132,11 @@ void addFIRToLLVMPass(mlir::PassManager &pm,
options.typeDescriptorsRenamedForAssembly =
!disableCompilerGeneratedNamesConversion;
options.ComplexRange = config.ComplexRange;
- addPassConditionally(pm, disableFirToLlvmIr,
- [&]() { return fir::createFIRToLLVMPass(options); });
+ pm.addPass(fir::createFIRToLLVMPass(options));
+
// The dialect conversion framework may leave dead unrealized_conversion_cast
// ops behind, so run reconcile-unrealized-casts to clean them up.
- addPassConditionally(pm, disableFirToLlvmIr, [&]() {
- return mlir::createReconcileUnrealizedCastsPass();
- });
+ pm.addPass(mlir::createReconcileUnrealizedCastsPass());
----------------
clementval wrote:
Same applies here.
https://github.com/llvm/llvm-project/pull/168703
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits