diff options
author | Richard Smith <richard@metafoo.co.uk> | 2020-06-04 19:16:05 -0700 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2020-06-04 19:19:01 -0700 |
commit | c57f8a3a20540fcf9fbf98c0a73f381ec32fce2a (patch) | |
tree | 20a1ad1ab9f3c0b5fc4cf1bdaac96698a3fc6852 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | c13dd74e311d2ac70dd3ea663d800307d1aa5b6b (diff) | |
download | llvm-c57f8a3a20540fcf9fbf98c0a73f381ec32fce2a.zip llvm-c57f8a3a20540fcf9fbf98c0a73f381ec32fce2a.tar.gz llvm-c57f8a3a20540fcf9fbf98c0a73f381ec32fce2a.tar.bz2 |
PR46209: properly determine whether a copy assignment operator is
trivial.
We previously took a shortcut by assuming that if a subobject had a
trivial copy assignment operator (with a few side-conditions), we would
always invoke it, and could avoid going through overload resolution.
That turns out to not be correct in the presenve of ref-qualifiers (and
also won't be the case for copy-assignments with requires-clauses
either). Use the same logic for lazy declaration of copy-assignments
that we use for all other special member functions.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions