[Mlir-commits] [mlir] 3164ae9 - [PDLL] Fix windows build after D115093

River Riddle llvmlistbot at llvm.org
Wed Dec 15 19:30:51 PST 2021


Author: River Riddle
Date: 2021-12-16T03:24:08Z
New Revision: 3164ae974656cd26f78567de35d9f015b1829cc5

URL: https://github.com/llvm/llvm-project/commit/3164ae974656cd26f78567de35d9f015b1829cc5
DIFF: https://github.com/llvm/llvm-project/commit/3164ae974656cd26f78567de35d9f015b1829cc5.diff

LOG: [PDLL] Fix windows build after D115093

Added: 
    

Modified: 
    mlir/lib/Tools/PDLL/AST/TypeDetail.h

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Tools/PDLL/AST/TypeDetail.h b/mlir/lib/Tools/PDLL/AST/TypeDetail.h
index f4a3d99e9679e..b8615175400ae 100644
--- a/mlir/lib/Tools/PDLL/AST/TypeDetail.h
+++ b/mlir/lib/Tools/PDLL/AST/TypeDetail.h
@@ -33,6 +33,8 @@ template <typename ConcreteT, typename KeyT = void>
 struct TypeStorageBase : public Type::Storage {
   using KeyTy = KeyT;
   using Base = TypeStorageBase<ConcreteT, KeyT>;
+  TypeStorageBase(KeyTy key)
+      : Type::Storage(TypeID::get<ConcreteT>()), key(key) {}
 
   /// Construct an instance with the given storage allocator.
   static ConcreteT *construct(StorageUniquer::StorageAllocator &alloc,
@@ -47,17 +49,12 @@ struct TypeStorageBase : public Type::Storage {
   const KeyTy &getValue() const { return key; }
 
 protected:
-  TypeStorageBase(KeyTy key)
-      : Type::Storage(TypeID::get<ConcreteT>()), key(key) {}
-
   KeyTy key;
 };
 /// A specialization of the storage base for singleton types.
 template <typename ConcreteT>
 struct TypeStorageBase<ConcreteT, void> : public Type::Storage {
   using Base = TypeStorageBase<ConcreteT, void>;
-
-protected:
   TypeStorageBase() : Type::Storage(TypeID::get<ConcreteT>()) {}
 };
 


        


More information about the Mlir-commits mailing list