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.
Paths
| Differential D26822
Sema, CodeGen: Ensure that an implicit copy ctor is always available under the Microsoft C++ ABI. ClosedPublic Authored by pcc on Nov 17 2016, 5:18 PM.
Details
Summary This is needed because whether the constructor is deleted can control whether To fix this properly we probably want a more direct way for CodeGen to ask Fixes PR31049.
Diff Detail
Event Timelinernk edited edge metadata. Comment ActionsRIchard, thoughts on which quick fix is better? Forcing the implicit decls or only handling the 'definition_only' case by looking for nontrivial move ctors in MicrosoftCXXABI? rnk edited edge metadata. Comment Actionslgtm This seems like a reasonable fix for now. Thanks for going through all that! This revision is now accepted and ready to land.Nov 21 2016, 2:54 PM Closed by commit rL287600: Sema, CodeGen: Ensure that an implicit copy ctor is available more often under… (authored by pcc). · Explain WhyNov 21 2016, 4:31 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 78802 cfe/trunk/lib/CodeGen/MicrosoftCXXABI.cpp
cfe/trunk/lib/Sema/SemaDeclCXX.cpp
cfe/trunk/test/CodeGenCXX/uncopyable-args.cpp
|