diff options
author | Sean Hunt <scshunt@csclub.uwaterloo.ca> | 2011-05-14 18:20:50 +0000 |
---|---|---|
committer | Sean Hunt <scshunt@csclub.uwaterloo.ca> | 2011-05-14 18:20:50 +0000 |
commit | 509f048825d309ca84db136abee32da0c6acffc0 (patch) | |
tree | 912742aecc746c007abbdb3c00a908917074bae7 /lib/Sema/SemaExpr.cpp | |
parent | 1fa8028d9ff5de64f8b9d55731ca83a2d3423a77 (diff) |
Make sure we actually generate defaulted copy constructors; caught by
Howard Hinnant. Thanks!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131349 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index a24f6fb960..5afd263ea1 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -9857,7 +9857,7 @@ void Sema::MarkDeclarationReferenced(SourceLocation Loc, Decl *D) { return; if (!Constructor->isUsed(false)) DefineImplicitDefaultConstructor(Loc, Constructor); - } else if (Constructor->isImplicit() && + } else if (Constructor->isDefaulted() && Constructor->isCopyConstructor()) { if (!Constructor->isUsed(false)) DefineImplicitCopyConstructor(Loc, Constructor); |