diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2015-12-02 15:05:47 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2015-12-02 15:05:47 +0000 |
commit | 08dd61de24f58f2df26306ebd833bc805fe73b7e (patch) | |
tree | 90cb32423d43cfbe4ab0c409f53bf94678ee3290 | |
parent | 9b04181d81ec185962b4a9c514cf287ba0fd1e7b (diff) | |
download | bcm5719-llvm-08dd61de24f58f2df26306ebd833bc805fe73b7e.tar.gz bcm5719-llvm-08dd61de24f58f2df26306ebd833bc805fe73b7e.zip |
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
-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() { |