Fix flang build after MLIR API change
authorMehdi Amini <joker.eph@gmail.com>
Tue, 18 Jan 2022 06:59:53 +0000 (06:59 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Tue, 18 Jan 2022 07:00:51 +0000 (07:00 +0000)
In c8e047f5e1 the default for useDefault{Type/Attribute}PrinterParser
was changed in ODS, restore the old value explicitly for the FirDialect.

flang/include/flang/Optimizer/Dialect/FIRDialect.td

index cb42499..34008dc 100644 (file)
@@ -25,6 +25,8 @@ def fir_Dialect : Dialect {
   let name = "fir";
   let cppNamespace = "::fir";
   let emitAccessorPrefix = kEmitAccessorPrefix_Both;
+  let useDefaultTypePrinterParser = 0;
+  let useDefaultAttributePrinterParser = 0;
 }
 
 #endif // FORTRAN_DIALECT_FIR_DIALECT