diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-10 18:46:38 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-10 18:46:38 +0000 |
commit | 06f598aa45b651f9f3be0b916d43876eae747af0 (patch) | |
tree | 6f775e62c3f6b44cc915ec66a3c6d8d721487518 /lib/CodeGen/CodeGenFunction.cpp | |
parent | f05fe65e64a5de93ba6d30e1b830fd0fc36358e9 (diff) |
minor refactoring. No change otherwise.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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); } } |