Skip to content

Commit 396a9ea

Browse files
committed
[NFC] Remove vestigial IBActionAttr checks
isObjC() has learned to check for IBActionAttr, so these checks are redundant.
1 parent baf2e4e commit 396a9ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/IRGen/GenObjC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,7 @@ bool irgen::requiresObjCMethodDescriptor(FuncDecl *method) {
14151415
if (isa<AccessorDecl>(method))
14161416
return false;
14171417

1418-
return method->isObjC() || method->getAttrs().hasAttribute<IBActionAttr>();
1418+
return method->isObjC();
14191419
}
14201420

14211421
bool irgen::requiresObjCMethodDescriptor(ConstructorDecl *constructor) {

lib/SILGen/SILGenType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ bool SILGenModule::requiresObjCMethodEntryPoint(FuncDecl *method) {
159159
if (method->getAttrs().hasAttribute<NSManagedAttr>())
160160
return false;
161161

162-
return method->isObjC() || method->getAttrs().hasAttribute<IBActionAttr>();
162+
return method->isObjC();
163163
}
164164

165165
bool SILGenModule::requiresObjCMethodEntryPoint(ConstructorDecl *constructor) {

0 commit comments

Comments
 (0)