forked from OSchip/llvm-project
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:
parent
9b04181d81
commit
08dd61de24
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue