]> granicus.if.org Git - clang/commitdiff
Amending r254423 by deleting the copy constructor and adding a move constructor inste...
authorAaron Ballman <aaron@aaronballman.com>
Wed, 2 Dec 2015 15:05:47 +0000 (15:05 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 2 Dec 2015 15:05:47 +0000 (15:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254515 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/AttributeList.h

index 7a84b20af231fc41c650293371ae30d5f7add81e..95968e21006ac816436dd537a4965d4dff49e78a 100644 (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() {