Sema, CodeGen: Ensure that an implicit copy ctor is available more often under the...
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 22 Nov 2016 00:21:43 +0000 (00:21 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 22 Nov 2016 00:21:43 +0000 (00:21 +0000)
commit120eb54422c0fba462b53cce652a6baef07acf57
treee43bd370eaee7b24bff7b021cf33dda9205df625
parent5a2e6b97f79d5e345649d50e31c419605462b096
Sema, CodeGen: Ensure that an implicit copy ctor is available more often under the Microsoft C++ ABI.

This is needed because whether the constructor is deleted can control whether
we pass structs by value directly.

To fix this properly we probably want a more direct way for CodeGen to ask
whether the constructor was deleted.

Fixes PR31049.

Differential Revision: https://reviews.llvm.org/D26822

llvm-svn: 287600
clang/lib/CodeGen/MicrosoftCXXABI.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/CodeGenCXX/uncopyable-args.cpp