forked from OSchip/llvm-project
[PDLL] Fix windows build after D115093
This commit is contained in:
parent
b68061a3f7
commit
3164ae9746
|
@ -33,6 +33,8 @@ template <typename ConcreteT, typename KeyT = void>
|
||||||
struct TypeStorageBase : public Type::Storage {
|
struct TypeStorageBase : public Type::Storage {
|
||||||
using KeyTy = KeyT;
|
using KeyTy = KeyT;
|
||||||
using Base = TypeStorageBase<ConcreteT, KeyT>;
|
using Base = TypeStorageBase<ConcreteT, KeyT>;
|
||||||
|
TypeStorageBase(KeyTy key)
|
||||||
|
: Type::Storage(TypeID::get<ConcreteT>()), key(key) {}
|
||||||
|
|
||||||
/// Construct an instance with the given storage allocator.
|
/// Construct an instance with the given storage allocator.
|
||||||
static ConcreteT *construct(StorageUniquer::StorageAllocator &alloc,
|
static ConcreteT *construct(StorageUniquer::StorageAllocator &alloc,
|
||||||
|
@ -47,17 +49,12 @@ struct TypeStorageBase : public Type::Storage {
|
||||||
const KeyTy &getValue() const { return key; }
|
const KeyTy &getValue() const { return key; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
TypeStorageBase(KeyTy key)
|
|
||||||
: Type::Storage(TypeID::get<ConcreteT>()), key(key) {}
|
|
||||||
|
|
||||||
KeyTy key;
|
KeyTy key;
|
||||||
};
|
};
|
||||||
/// A specialization of the storage base for singleton types.
|
/// A specialization of the storage base for singleton types.
|
||||||
template <typename ConcreteT>
|
template <typename ConcreteT>
|
||||||
struct TypeStorageBase<ConcreteT, void> : public Type::Storage {
|
struct TypeStorageBase<ConcreteT, void> : public Type::Storage {
|
||||||
using Base = TypeStorageBase<ConcreteT, void>;
|
using Base = TypeStorageBase<ConcreteT, void>;
|
||||||
|
|
||||||
protected:
|
|
||||||
TypeStorageBase() : Type::Storage(TypeID::get<ConcreteT>()) {}
|
TypeStorageBase() : Type::Storage(TypeID::get<ConcreteT>()) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue