From 3164ae974656cd26f78567de35d9f015b1829cc5 Mon Sep 17 00:00:00 2001 From: River Riddle Date: Thu, 16 Dec 2021 03:23:52 +0000 Subject: [PATCH] [PDLL] Fix windows build after D115093 --- mlir/lib/Tools/PDLL/AST/TypeDetail.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mlir/lib/Tools/PDLL/AST/TypeDetail.h b/mlir/lib/Tools/PDLL/AST/TypeDetail.h index f4a3d99e9679..b8615175400a 100644 --- a/mlir/lib/Tools/PDLL/AST/TypeDetail.h +++ b/mlir/lib/Tools/PDLL/AST/TypeDetail.h @@ -33,6 +33,8 @@ template struct TypeStorageBase : public Type::Storage { using KeyTy = KeyT; using Base = TypeStorageBase; + TypeStorageBase(KeyTy key) + : Type::Storage(TypeID::get()), 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()), key(key) {} - KeyTy key; }; /// A specialization of the storage base for singleton types. template struct TypeStorageBase : public Type::Storage { using Base = TypeStorageBase; - -protected: TypeStorageBase() : Type::Storage(TypeID::get()) {} };