diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-09-27 22:37:28 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-09-27 22:37:28 +0000 |
| commit | ec3bec0c7abd07bb9b372008e6870c44b1f5b318 (patch) | |
| tree | f81cff1f97a6301aecb063195fec61fccd8957ee /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 175d6411c822c5eb45febdb8e167bf1ae243d9e9 (diff) | |
| download | bcm5719-llvm-ec3bec0c7abd07bb9b372008e6870c44b1f5b318.tar.gz bcm5719-llvm-ec3bec0c7abd07bb9b372008e6870c44b1f5b318.zip | |
Kill FunctionDecl's IsCopyAssignment bit; it duplicated what could
already be determined by isCopyAssignmentOperator(), and was set too
late in the process for all clients to see the appropriate
value. Cleanup only; no functionality change.
llvm-svn: 114916
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index f5ba76c1b9d..805b33e3247 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -867,7 +867,7 @@ CodeGenModule::GetOrCreateLLVMFunction(llvm::StringRef MangledName, DeferredDeclsToEmit.push_back(D); } } else if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD)) { - if (MD->isCopyAssignment() && MD->isImplicit()) { + if (MD->isImplicit() && MD->isCopyAssignmentOperator()) { assert(MD->isUsed() && "Sema doesn't consider CopyAssignment as used."); DeferredDeclsToEmit.push_back(D); } |

