diff options
| author | Reid Kleckner <reid@kleckner.net> | 2014-02-01 00:04:45 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2014-02-01 00:04:45 +0000 |
| commit | 279292b8f1a9855f5c57dbc8d7711fc1d99c055e (patch) | |
| tree | 42dfa039cb5eeafd127b4ff45866a0edf00d0c51 /lib/CodeGen/CGExpr.cpp | |
| parent | e6a9903e83ef065d324145e1fce4ed7c238c6ec5 (diff) | |
| download | clang-279292b8f1a9855f5c57dbc8d7711fc1d99c055e.tar.gz clang-279292b8f1a9855f5c57dbc8d7711fc1d99c055e.tar.bz2 clang-279292b8f1a9855f5c57dbc8d7711fc1d99c055e.tar.xz | |
[ms-cxxabi] Use inalloca on win32 when passing non-trivial C++ objects
When a non-trivial parameter is present, clang now gathers up all the
parameters that lack inreg and puts them into a packed struct. MSVC
always aligns each parameter to 4 bytes and no more, so this is a pretty
simple struct to lay out.
On win64, non-trivial records are passed indirectly. Prior to this
change, clang was incorrectly using byval on win64.
I'm able to self-host a working clang with this change and additional
LLVM patches.
Reviewers: rsmith
Differential Revision: http://llvm-reviews.chandlerc.com/D2636
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200597 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
