From ca28361fb0a72c50e0a400fae2fad9520e61c0a5 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Fri, 7 Aug 2009 23:51:33 +0000 Subject: Synthesized copy constructor now generates code for copying non-virtual base classes which have non-trivial constructor. Work in progress. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78436 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/CodeGenFunction.cpp') diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 7c9b3af8d3..0a3d9d4be9 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -247,7 +247,7 @@ void CodeGenFunction::GenerateCode(const FunctionDecl *FD, assert(!ClassDecl->hasUserDeclaredCopyConstructor() && "bogus constructor is being synthesize"); StartFunction(FD, FD->getResultType(), Fn, Args, SourceLocation()); - EmitCopyCtorBody(CD); + EmitCopyCtorBody(CD, Args); FinishFunction(); } else { -- cgit v1.2.3