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 | aa01d2a5323a3b0ccc50bc8e1bd3db9373d7ea5e (patch) | |
tree | de79455f46839db2041dd9bef7d212a8f9ca3719 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 118cef36b83222c15a7af3935af15054b791b992 (diff) | |
download | bcm5719-llvm-aa01d2a5323a3b0ccc50bc8e1bd3db9373d7ea5e.tar.gz bcm5719-llvm-aa01d2a5323a3b0ccc50bc8e1bd3db9373d7ea5e.zip |
Patch for future ir-gen for destructor calls.
llvm-svn: 77608
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 82ec1eb603f..fb4b924765d 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/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()); } |