From bb5008a32ac913144ba8721eb99f09f55389de3b Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Tue, 8 Dec 2009 06:46:18 +0000 Subject: Fix for PR5707: make sure implicit copy constructors initialize the vtable pointer. llvm-svn: 90840 --- clang/lib/CodeGen/CodeGenFunction.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/CodeGen/CodeGenFunction.h') diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index ead2b5df7d3..854eb53ec29 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -468,6 +468,8 @@ public: void EmitCtorPrologue(const CXXConstructorDecl *CD, CXXCtorType Type); + void InitializeVtablePtrs(const CXXRecordDecl *ClassDecl); + void SynthesizeCXXCopyConstructor(const CXXConstructorDecl *Ctor, CXXCtorType Type, llvm::Function *Fn, -- cgit v1.2.3