minor refactoring. No change otherwise.

llvm-svn: 78582
This commit is contained in:
Fariborz Jahanian
2009-08-10 18:46:38 +00:00
parent 17410a4b92
commit 9d3405ceab
3 changed files with 17 additions and 4 deletions

View File

@@ -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);
}
}