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 | 9e9199d8649cf3e10c98a69403f05dbb666d8fb1 (patch) | |
| tree | 5051ff7f4e0191e7d7dc9606c698986689483526 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 0d6d12b2db47ff34d6cd30917992a8c8ad97aac2 (diff) | |
| download | clang-9e9199d8649cf3e10c98a69403f05dbb666d8fb1.tar.gz clang-9e9199d8649cf3e10c98a69403f05dbb666d8fb1.tar.bz2 clang-9e9199d8649cf3e10c98a69403f05dbb666d8fb1.tar.xz | |
Eliminate the ASTContext argument to CXXConstructorDecl::isCopyConstructor, since the context is available in the Decl
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91862 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 28df9e4d78..f904f043ca 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/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); |
