aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-08-08 19:31:03 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-08-08 19:31:03 +0000
commit8c241a2844428eb1589c7b77fc6c1888295a2045 (patch)
tree83712342af3ff9b35cb7269ae1ad48bb7ce7667b /lib/CodeGen/CodeGenFunction.cpp
parent8045c7393bc83060f812d0f7b1221edbc767407c (diff)
Refactoring of copy ctor ir-gen. No change in functionality.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78489 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--lib/CodeGen/CodeGenFunction.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp
index 0a3d9d4be9..eae6161e8e 100644
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/lib/CodeGen/CodeGenFunction.cpp
@@ -246,9 +246,7 @@ void CodeGenFunction::GenerateCode(const FunctionDecl *FD,
if (CD->isCopyConstructor(getContext())) {
assert(!ClassDecl->hasUserDeclaredCopyConstructor() &&
"bogus constructor is being synthesize");
- StartFunction(FD, FD->getResultType(), Fn, Args, SourceLocation());
- EmitCopyCtorBody(CD, Args);
- FinishFunction();
+ SynthesizeCXXCopyConstructor(CD, FD, Fn, Args);
}
else {
assert(!ClassDecl->hasUserDeclaredConstructor() &&