diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-07-30 17:49:11 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-07-30 17:49:11 +0000 |
commit | 426cc3828ce07a2cff15c9837f5958e6fc4b7739 (patch) | |
tree | 95493da6c4863091df9486ebf008ed255c1b7852 /lib/CodeGen/CodeGenFunction.cpp | |
parent | 4b5acc5454330046cf651c7eef61d1cdfff87d99 (diff) |
Patch for future ir-gen for destructor calls.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77608 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 82ec1eb603..fb4b924765 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -234,6 +234,8 @@ void CodeGenFunction::GenerateCode(const FunctionDecl *FD, if (const CXXConstructorDecl *CD = dyn_cast<CXXConstructorDecl>(FD)) EmitCtorPrologue(CD); EmitStmt(S); + if (const CXXDestructorDecl *DD = dyn_cast<CXXDestructorDecl>(FD)) + EmitDtorEpilogue(DD); FinishFunction(S->getRBracLoc()); } |