diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-05-03 00:33:28 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-05-03 00:33:28 +0000 |
commit | e39ee215519e6189d56b345e21f2cee2ffeed3ab (patch) | |
tree | a36d7025413b85f43118386359aa745ee6088325 /clang/lib/Parse/Parser.cpp | |
parent | 7d8668288ada75837138375497467172efe10c37 (diff) | |
download | bcm5719-llvm-e39ee215519e6189d56b345e21f2cee2ffeed3ab.tar.gz bcm5719-llvm-e39ee215519e6189d56b345e21f2cee2ffeed3ab.zip |
MS ABI x64: Pass small objects with dtors but no copy ctors directly
Passing objects directly (in registers or memory) creates a second copy
of the object in the callee. The callee always destroys its copy, but
we also have to destroy any temporary created in the caller. In other
words, copy elision of these kinds of objects is impossible.
Objects larger than 8 bytes with non-trivial dtors and trivial copy
ctors are still passed indirectly, and we can still elide copies of
them.
Fixes PR19640.
llvm-svn: 207889
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
0 files changed, 0 insertions, 0 deletions