summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGClass.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/CGClass.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/CGClass.cpp')
-rw-r--r--clang/lib/CodeGen/CGClass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index fb2c9583d4a..522fee488c6 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/lib/CodeGen/CGClass.cpp
@@ -1043,7 +1043,7 @@ void CodeGenFunction::SynthesizeDefaultDestructor(const CXXDestructorDecl *Dtor,
StartFunction(GlobalDecl(Dtor, DtorType), Dtor->getResultType(), Fn, Args,
SourceLocation());
-
+ InitializeVtablePtrs(Dtor->getParent());
EmitDtorEpilogue(Dtor, DtorType);
FinishFunction();
}
OpenPOWER on IntegriCloud