[PATCH] D140664: [Sema] Don't mark deleted special member functions as non-trivial

Roy Jacobson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 25 13:54:37 PST 2022


royjacobson created this revision.
Herald added a project: All.
royjacobson requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

As noted in https://github.com/llvm/llvm-project/issues/59624, we sometimes mark implicitly
deleted special member functions as non-trivial. This is unnecessary work and leads to some
weird type traits errors.

This fixes the problem by making the implicitly deleted special member functions always
trivial.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140664

Files:
  clang/docs/ReleaseNotes.rst
  clang/lib/Sema/SemaDeclCXX.cpp
  clang/test/AST/ast-dump-funcs.cpp
  clang/test/SemaCXX/GH59624.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140664.485242.patch
Type: text/x-patch
Size: 9221 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221225/85d9f90c/attachment.bin>


More information about the cfe-commits mailing list