diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-07-25 21:39:46 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-07-25 21:39:46 +0000 |
commit | aea8269867f7610cc2d632215dafc3a3d0c8643c (patch) | |
tree | 27932702a2c21216bb6742de94aadb7475aa9f5d /lib/CodeGen/CGVTables.cpp | |
parent | 423eb50d920c9b3f3cc975b1a5df4d191f4d34d1 (diff) |
MS ABI: Don't push destructor cleanups for aggregate parameters in thunks
The target method of the thunk will perform the cleanup. This can't be
tested in 32-bit x86 yet because passing something by value would create
an inalloca, and we refuse to generate broken code for that.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213976 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVTables.cpp')
-rw-r--r-- | lib/CodeGen/CGVTables.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGVTables.cpp b/lib/CodeGen/CGVTables.cpp index 0df2c43d11..c53e7ed33d 100644 --- a/lib/CodeGen/CGVTables.cpp +++ b/lib/CodeGen/CGVTables.cpp @@ -194,6 +194,7 @@ void CodeGenFunction::StartThunk(llvm::Function *Fn, GlobalDecl GD, const CGFunctionInfo &FnInfo) { assert(!CurGD.getDecl() && "CurGD was already set!"); CurGD = GD; + CurFuncIsThunk = true; // Build FunctionArgs. const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); |