Amending r254423 by deleting the copy constructor and adding a move constructor instead; NFC as neither of these constructors are currently called, but this is a safer design.

llvm-svn: 254515
This commit is contained in:
Aaron Ballman 2015-12-02 15:05:47 +00:00
parent 9b04181d81
commit 08dd61de24
1 changed files with 7 additions and 0 deletions

View File

@ -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() {