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 | 3753e68d0a785dc92ee7317585d521e502f65a95 (patch) | |
| tree | 5a7bfa1ed09cec8b67ed35497a320714e5e3db4e /lib/Basic/FileSystemStatCache.cpp | |
| parent | 011ceaf955ef9b050e8be66edc8ac28485066b59 (diff) | |
| download | clang-3753e68d0a785dc92ee7317585d521e502f65a95.tar.gz clang-3753e68d0a785dc92ee7317585d521e502f65a95.tar.bz2 clang-3753e68d0a785dc92ee7317585d521e502f65a95.tar.xz | |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207889 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/FileSystemStatCache.cpp')
0 files changed, 0 insertions, 0 deletions
