From: Manna, Soumi Date: Mon, 15 May 2023 12:58:52 +0000 (-0700) Subject: Fix build error caused by https://reviews.llvm.org/D149718 X-Git-Tag: upstream/17.0.6~8528 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=292a6c1c2395f990bbde8d968825243e4fe9b954;p=platform%2Fupstream%2Fllvm.git 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. --- 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 @@ public: /// Move the given pool's allocations to this pool. AttributePool(AttributePool &&pool) = default; - AttributePool &operator=(AttributePool &&pool) = default; AttributeFactory &getFactory() const { return Factory; }