From 06f598aa45b651f9f3be0b916d43876eae747af0 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Mon, 10 Aug 2009 18:46:38 +0000 Subject: minor refactoring. No change otherwise. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78582 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenFunction.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/CodeGen/CodeGenFunction.cpp') diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 6135f65513..309c76bea5 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -251,9 +251,7 @@ void CodeGenFunction::GenerateCode(const FunctionDecl *FD, else { assert(!ClassDecl->hasUserDeclaredConstructor() && "bogus constructor is being synthesize"); - StartFunction(FD, FD->getResultType(), Fn, Args, SourceLocation()); - EmitCtorPrologue(CD); - FinishFunction(); + SynthesizeDefaultConstructor(CD, FD, Fn, Args); } } -- cgit v1.2.3-18-g5258