summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGException.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-02-07 19:45:40 +0000
committerAnders Carlsson <andersca@mac.com>2010-02-07 19:45:40 +0000
commitff8cce439551727667a62af476fca827100d90f4 (patch)
tree70bd0e357dfb2992c132b1cda3ccece1be7f4090 /clang/lib/CodeGen/CGException.cpp
parent6d0e5bd8f35e8152d5cf071da875eb873e8aec7b (diff)
downloadbcm5719-llvm-ff8cce439551727667a62af476fca827100d90f4.tar.gz
bcm5719-llvm-ff8cce439551727667a62af476fca827100d90f4.zip
Make sure to set vtable pointers in the destructors as well.
llvm-svn: 95525
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r--clang/lib/CodeGen/CGException.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp
index 85db6bb973a..60a1016cc04 100644
--- a/clang/lib/CodeGen/CGException.cpp
+++ b/clang/lib/CodeGen/CGException.cpp
@@ -473,6 +473,7 @@ void CodeGenFunction::EmitCXXTryStmt(const CXXTryStmt &S) {
llvm::BasicBlock *DtorEpilogue = createBasicBlock("dtor.epilogue");
PushCleanupBlock(DtorEpilogue);
+ InitializeVtablePtrs(DD->getParent());
EmitStmt(S.getTryBlock());
CleanupBlockInfo Info = PopCleanupBlock();
OpenPOWER on IntegriCloud