Fix build error caused by https://reviews.llvm.org/D149718
authorManna, Soumi <soumi.manna@intel.com>
Mon, 15 May 2023 12:58:52 +0000 (05:58 -0700)
committerManna, Soumi <soumi.manna@intel.com>
Mon, 15 May 2023 13:03:47 +0000 (06:03 -0700)
The patch(https://reviews.llvm.org/D149718) broke buildbot

../../clang/include/clang/Sema/ParsedAttr.h:705:18: error: explicitly defaulted move assignment operator is implicitly deleted [-Werror,-Wdefaulted-function-deleted]
  AttributePool &operator=(AttributePool &&pool) = default;
                 ^
../../clang/include/clang/Sema/ParsedAttr.h:674:21: note: move assignment operator of 'AttributePool' is implicitly deleted because field 'Factory' is of reference type 'clang::AttributeFactory &'
  AttributeFactory &Factory;
                    ^
1 error generated.

This patch fixes the build error.

clang/include/clang/Sema/ParsedAttr.h

index 837725c0798075da19259537954c388dc1e00e48..cb27dd727f0ff4712619ab1f8f4b5bb9c9e4d3f9 100644 (file)
@@ -702,7 +702,6 @@ public:
 
   /// Move the given pool's allocations to this pool.
   AttributePool(AttributePool &&pool) = default;
-  AttributePool &operator=(AttributePool &&pool) = default;
 
   AttributeFactory &getFactory() const { return Factory; }