aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorSean Hunt <scshunt@csclub.uwaterloo.ca>2011-05-14 05:23:28 +0000
committerSean Hunt <scshunt@csclub.uwaterloo.ca>2011-05-14 05:23:28 +0000
commit2b188085eccf741a9520ba86f1e6e32d0e0cd3f2 (patch)
tree339b9872c7e85c1c2901f214224c714d2ef2767d /lib/Sema/SemaExpr.cpp
parent7f410191f344dc26aa926de6593fdacaad9fd1a7 (diff)
What I hope to be an implementation of defaulted copy assignment
operators. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131338 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r--lib/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index 8956d0f463..a24f6fb960 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -9870,7 +9870,7 @@ void Sema::MarkDeclarationReferenced(SourceLocation Loc, Decl *D) {
if (Destructor->isVirtual())
MarkVTableUsed(Loc, Destructor->getParent());
} else if (CXXMethodDecl *MethodDecl = dyn_cast<CXXMethodDecl>(D)) {
- if (MethodDecl->isImplicit() && MethodDecl->isOverloadedOperator() &&
+ if (MethodDecl->isDefaulted() && MethodDecl->isOverloadedOperator() &&
MethodDecl->getOverloadedOperator() == OO_Equal) {
if (!MethodDecl->isUsed(false))
DefineImplicitCopyAssignment(Loc, MethodDecl);