diff --git a/clang/include/clang/Sema/AttributeList.h b/clang/include/clang/Sema/AttributeList.h index 7a84b20af231..95968e21006a 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() {