[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
Sun May 14 22:36:55 PDT 2023


uabelho added a comment.

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.


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