]> granicus.if.org Git - clang/commit
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)
commitaea11161bc7db9f21babdf095ae757b78dafba11
treefdb70544e1be12f5cef549be77171c4e339a4de0
parent0e90760c2c0f65118c85c16025838600b3fb11b5
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@287600 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MicrosoftCXXABI.cpp
lib/Sema/SemaDeclCXX.cpp
test/CodeGenCXX/uncopyable-args.cpp