[flang-commits] [flang] 79dffba - Fix flang build after MLIR API change

Mehdi Amini via flang-commits flang-commits at lists.llvm.org
Mon Jan 17 23:00:58 PST 2022


Author: Mehdi Amini
Date: 2022-01-18T07:00:51Z
New Revision: 79dffbadf69c6604698e193d639d2580eb3814c4

URL: https://github.com/llvm/llvm-project/commit/79dffbadf69c6604698e193d639d2580eb3814c4
DIFF: https://github.com/llvm/llvm-project/commit/79dffbadf69c6604698e193d639d2580eb3814c4.diff

LOG: Fix flang build after MLIR API change

In c8e047f5e1 the default for useDefault{Type/Attribute}PrinterParser
was changed in ODS, restore the old value explicitly for the FirDialect.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/flang/include/flang/Optimizer/Dialect/FIRDialect.td b/flang/include/flang/Optimizer/Dialect/FIRDialect.td
index cb424994ffeb5..34008dc46370f 100644
--- a/flang/include/flang/Optimizer/Dialect/FIRDialect.td
+++ b/flang/include/flang/Optimizer/Dialect/FIRDialect.td
@@ -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


        


More information about the flang-commits mailing list