commit | 1851a12605bc6f1ea70d11974a315340ebaab6eb | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Sun Feb 07 19:45:40 2010 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Sun Feb 07 19:45:40 2010 +0000 |
tree | aa75366648d8cf95699bfef4330be6655e04b438 | |
parent | 585fa68ca00421af6c8289866a7bde27a8e8c0ce [diff] [blame] |
Make sure to set vtable pointers in the destructors as well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95525 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 44ed9db..4eeea8e 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp
@@ -283,6 +283,8 @@ llvm::BasicBlock *DtorEpilogue = createBasicBlock("dtor.epilogue"); PushCleanupBlock(DtorEpilogue); + InitializeVtablePtrs(DD->getParent()); + EmitStmt(S); CleanupBlockInfo Info = PopCleanupBlock();