Author: Manna, Soumi Date: 2023-05-15T06:03:47-07:00 New Revision: 292a6c1c2395f990bbde8d968825243e4fe9b954
URL: https://github.com/llvm/llvm-project/commit/292a6c1c2395f990bbde8d968825243e4fe9b954 DIFF: https://github.com/llvm/llvm-project/commit/292a6c1c2395f990bbde8d968825243e4fe9b954.diff LOG: Fix build error caused by https://reviews.llvm.org/D149718 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. Added: Modified: clang/include/clang/Sema/ParsedAttr.h Removed: ################################################################################ diff --git a/clang/include/clang/Sema/ParsedAttr.h b/clang/include/clang/Sema/ParsedAttr.h index 837725c07980..cb27dd727f0f 100644 --- a/clang/include/clang/Sema/ParsedAttr.h +++ b/clang/include/clang/Sema/ParsedAttr.h @@ -702,7 +702,6 @@ class AttributePool { /// Move the given pool's allocations to this pool. AttributePool(AttributePool &&pool) = default; - AttributePool &operator=(AttributePool &&pool) = default; AttributeFactory &getFactory() const { return Factory; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits