diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-12-22 00:34:07 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-12-22 00:34:07 +0000 |
commit | 507eb87f05bf20310ebb24e2ddb7b5517f909a62 (patch) | |
tree | c3342da9c0537786f082f226a3eda42709cb1aa6 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 4141d5bea240f3a01a01c94a778c6b4c4e839847 (diff) | |
download | bcm5719-llvm-507eb87f05bf20310ebb24e2ddb7b5517f909a62.tar.gz bcm5719-llvm-507eb87f05bf20310ebb24e2ddb7b5517f909a62.zip |
Eliminate the ASTContext argument to CXXConstructorDecl::isCopyConstructor, since the context is available in the Decl
llvm-svn: 91862
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 28df9e4d786..f904f043caa 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -331,7 +331,7 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD, if (const CXXConstructorDecl *CD = dyn_cast<CXXConstructorDecl>(FD)) { // FIXME: For C++0x, we want to look for implicit *definitions* of // these special member functions, rather than implicit *declarations*. - if (CD->isCopyConstructor(getContext())) { + if (CD->isCopyConstructor()) { assert(!ClassDecl->hasUserDeclaredCopyConstructor() && "Cannot synthesize a non-implicit copy constructor"); SynthesizeCXXCopyConstructor(CD, GD.getCtorType(), Fn, Args); |