aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-08-12 21:14:35 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-08-12 21:14:35 +0000
commit2198ba12b73a8e6801d13f25de38031da6df46b6 (patch)
treedd1dda4d0ba2fcf167bfd880c922c5deb32998da /lib/CodeGen/CodeGenFunction.cpp
parent34fae9cf27b19664f1f4526e195aff2299de2c40 (diff)
Patch for synthesizing copy assignment operator.
WIP. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78841 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--lib/CodeGen/CodeGenFunction.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp
index 309c76bea5..b7ae7c1f0d 100644
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/lib/CodeGen/CodeGenFunction.cpp
@@ -254,6 +254,9 @@ void CodeGenFunction::GenerateCode(const FunctionDecl *FD,
SynthesizeDefaultConstructor(CD, FD, Fn, Args);
}
}
+ else if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD))
+ if (MD->isCopyAssignment())
+ SynthesizeCXXCopyAssignment(MD, FD, Fn, Args);
// Destroy the 'this' declaration.
if (CXXThisDecl)