|
@@ -702,7 +702,8 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn,
|
|
// clones the body of the function call operator (but is actually static).
|
|
// clones the body of the function call operator (but is actually static).
|
|
EmitLambdaStaticInvokeFunction(cast<CXXMethodDecl>(FD));
|
|
EmitLambdaStaticInvokeFunction(cast<CXXMethodDecl>(FD));
|
|
} else if (FD->isDefaulted() && isa<CXXMethodDecl>(FD) &&
|
|
} else if (FD->isDefaulted() && isa<CXXMethodDecl>(FD) &&
|
|
- cast<CXXMethodDecl>(FD)->isCopyAssignmentOperator()) {
|
|
|
|
|
|
+ (cast<CXXMethodDecl>(FD)->isCopyAssignmentOperator() ||
|
|
|
|
+ cast<CXXMethodDecl>(FD)->isMoveAssignmentOperator())) {
|
|
// Implicit copy-assignment gets the same special treatment as implicit
|
|
// Implicit copy-assignment gets the same special treatment as implicit
|
|
// copy-constructors.
|
|
// copy-constructors.
|
|
emitImplicitAssignmentOperatorBody(Args);
|
|
emitImplicitAssignmentOperatorBody(Args);
|