From b68df0bc422827ab6b6b31865529014f5eff6ac3 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. llvm-svn: 78436 --- clang/lib/CodeGen/CodeGenFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp') diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 7c9b3af8d3fc..0a3d9d4be9b4 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/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