@@ -4391,21 +4391,16 @@ void AttributeChecker::checkBackDeployAttrs(ArrayRef<BackDeployAttr *> Attrs) {
43914391 if (Attrs.empty ())
43924392 return ;
43934393
4394- // Diagnose conflicting attributes. @_alwaysEmitIntoClient, @inlinable, and
4395- // @_transparent all conflict with back deployment because they each cause the
4396- // body of a function to be copied into the client under certain conditions
4397- // and would defeat the goal of back deployment, which is to always use the
4398- // ABI version of the declaration when it is available.
4394+ // Diagnose conflicting attributes. @_alwaysEmitIntoClient and @_transparent
4395+ // conflict with back deployment because they each cause the body of a
4396+ // function to always be copied into the client and would defeat the goal of
4397+ // back deployment, which is to use the ABI version of the declaration when it
4398+ // is available.
43994399 if (auto *AEICA = D->getAttrs ().getAttribute <AlwaysEmitIntoClientAttr>()) {
44004400 diagnoseAndRemoveAttr (AEICA, diag::attr_incompatible_with_back_deploy,
44014401 AEICA, D->getDescriptiveKind ());
44024402 }
44034403
4404- if (auto *IA = D->getAttrs ().getAttribute <InlinableAttr>()) {
4405- diagnoseAndRemoveAttr (IA, diag::attr_incompatible_with_back_deploy, IA,
4406- D->getDescriptiveKind ());
4407- }
4408-
44094404 if (auto *TA = D->getAttrs ().getAttribute <TransparentAttr>()) {
44104405 diagnoseAndRemoveAttr (TA, diag::attr_incompatible_with_back_deploy, TA,
44114406 D->getDescriptiveKind ());
0 commit comments