diff options
| author | Reid Kleckner <reid@kleckner.net> | 2013-12-04 19:23:12 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2013-12-04 19:23:12 +0000 |
| commit | d4abf6549efb81da6ee9053af8bc7918d0a3b192 (patch) | |
| tree | 1f6992d9eafc8210adaf32c83dee1fb029b71a15 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 60fc878a5c311cbc77e7cb4146cdf683284a0316 (diff) | |
| download | clang-d4abf6549efb81da6ee9053af8bc7918d0a3b192.tar.gz clang-d4abf6549efb81da6ee9053af8bc7918d0a3b192.tar.bz2 clang-d4abf6549efb81da6ee9053af8bc7918d0a3b192.tar.xz | |
[ms-cxxabi] Construct and destroy call arguments in the correct order
Summary:
MSVC destroys arguments in the callee from left to right. Because C++
objects have to be destroyed in the reverse order of construction, Clang
has to construct arguments from right to left and destroy arguments from
left to right.
This patch fixes the ordering by reversing the order of evaluation of
all call arguments under the MS C++ ABI.
Fixes PR18035.
Reviewers: rsmith
Differential Revision: http://llvm-reviews.chandlerc.com/D2275
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196402 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
