diff options
-rw-r--r-- | clang/include/clang/Sema/AttributeList.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/include/clang/Sema/AttributeList.h b/clang/include/clang/Sema/AttributeList.h index 7a84b20af23..95968e21006 100644 --- a/clang/include/clang/Sema/AttributeList.h +++ b/clang/include/clang/Sema/AttributeList.h @@ -557,6 +557,13 @@ public: /// Create a new pool for a factory. AttributePool(AttributeFactory &factory) : Factory(factory), Head(nullptr) {} + AttributePool(AttributePool &) = delete; + + /// Move the given pool's allocations to this pool. + AttributePool(AttributePool &&pool) : Factory(pool.Factory), Head(pool.Head) { + pool.Head = nullptr; + } + AttributeFactory &getFactory() const { return Factory; } void clear() { |