mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
Make sure we actually generate defaulted copy constructors; caught by
Howard Hinnant. Thanks! llvm-svn: 131349
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user