Sema: Simplify tracking the foreign language of an @objc decl

Apply review comments from #80744.
This commit is contained in:
Alexis Laferrière
2025-04-17 11:47:20 -07:00
parent c6b282156e
commit 384b0302c2
4 changed files with 32 additions and 33 deletions

View File

@@ -638,8 +638,7 @@ configureInheritedDesignatedInitAttributes(ClassDecl *classDecl,
std::optional<ForeignErrorConvention> errorConvention;
if (superclassCtor->isObjC() &&
!isRepresentableInLanguage(ctor, ObjCReason::MemberOfObjCSubclass,
asyncConvention, errorConvention,
ForeignLanguage::ObjectiveC))
asyncConvention, errorConvention))
ctor->getAttrs().add(new (ctx) NonObjCAttr(/*isImplicit=*/true));
}