[flang-commits] [flang] 82fd139 - [flang] Update FirOpsDialect constructor to pass its TypeID

River Riddle via flang-commits flang-commits at lists.llvm.org
Fri Aug 7 13:43:56 PDT 2020


Author: River Riddle
Date: 2020-08-07T13:43:25-07:00
New Revision: 82fd1392016984c81c6037e147ee2dd36cf91f4c

URL: https://github.com/llvm/llvm-project/commit/82fd1392016984c81c6037e147ee2dd36cf91f4c
DIFF: https://github.com/llvm/llvm-project/commit/82fd1392016984c81c6037e147ee2dd36cf91f4c.diff

LOG: [flang] Update FirOpsDialect constructor to pass its TypeID

Added: 
    

Modified: 
    flang/lib/Optimizer/Dialect/FIRDialect.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Optimizer/Dialect/FIRDialect.cpp b/flang/lib/Optimizer/Dialect/FIRDialect.cpp
index 6364c24137f2..ab6b07b3ca5b 100644
--- a/flang/lib/Optimizer/Dialect/FIRDialect.cpp
+++ b/flang/lib/Optimizer/Dialect/FIRDialect.cpp
@@ -14,7 +14,7 @@
 using namespace fir;
 
 fir::FIROpsDialect::FIROpsDialect(mlir::MLIRContext *ctx)
-    : mlir::Dialect("fir", ctx) {
+    : mlir::Dialect("fir", ctx, mlir::TypeID::get<FIROpsDialect>()) {
   addTypes<BoxType, BoxCharType, BoxProcType, CharacterType, CplxType, DimsType,
            FieldType, HeapType, IntType, LenType, LogicalType, PointerType,
            RealType, RecordType, ReferenceType, SequenceType, TypeDescType>();


        


More information about the flang-commits mailing list