diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-12 21:14:35 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-12 21:14:35 +0000 |
commit | de7d4c264a29ffabf6dcf1d899482f36735fa8e7 (patch) | |
tree | 098e05aa9934daea65593e9ff81553e8d085ba54 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | b4c6965da3a74070188f90a73d57bc4bfe9ec72f (diff) | |
download | bcm5719-llvm-de7d4c264a29ffabf6dcf1d899482f36735fa8e7.tar.gz bcm5719-llvm-de7d4c264a29ffabf6dcf1d899482f36735fa8e7.zip |
Patch for synthesizing copy assignment operator.
WIP.
llvm-svn: 78841
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 309c76bea5c..b7ae7c1f0d2 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/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) |