diff options
author | Anders Carlsson <andersca@mac.com> | 2010-05-02 23:29:11 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-05-02 23:29:11 +0000 |
commit | 8e6404ca28d6bbb76e97ea2a53a74816c2a74665 (patch) | |
tree | 71a86eabbf8f2969a2a2782f225c93a20840d2d9 /lib/CodeGen/CGDecl.cpp | |
parent | 155ed4a23366f4514befb1c9f5f89d16f8b8b6db (diff) |
Add the same 'ForVirtualBase' parameter to EmitCXXDestructorCall.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102882 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index 331ae7a58f..98a449ad76 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -676,14 +676,16 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D) { } else { { DelayedCleanupBlock Scope(*this); - EmitCXXDestructorCall(D, Dtor_Complete, DeclPtr); + EmitCXXDestructorCall(D, Dtor_Complete, /*ForVirtualBase=*/false, + DeclPtr); // Make sure to jump to the exit block. EmitBranch(Scope.getCleanupExitBlock()); } if (Exceptions) { EHCleanupBlock Cleanup(*this); - EmitCXXDestructorCall(D, Dtor_Complete, DeclPtr); + EmitCXXDestructorCall(D, Dtor_Complete, /*ForVirtualBase=*/false, + DeclPtr); } } } |