[PATCH] D149718: [NFC][Clang] Fix Coverity issues of copy without assign

Mikael Holmén via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 15 01:32:22 PDT 2023


uabelho added a comment.

In D149718#4341052 <https://reviews.llvm.org/D149718#4341052>, @uabelho wrote:

> Compiling with clang 15.0.5 I get the following warning/error with this patch:
>
>   ../../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.

Also seen in this buildbot:
 https://lab.llvm.org/buildbot/#/builders/214/builds/7476


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149718/new/

https://reviews.llvm.org/D149718



More information about the cfe-commits mailing list