Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 04f8879

Browse files
committedNov 27, 2020
Objective-C: Don't require an @selector UDA for each class method
1 parent c249e6b commit 04f8879

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎gen/functions.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@ llvm::FunctionType *DtoFunctionType(Type *type, IrFuncTy &irFty, Type *thistype,
136136
if (fd && fd->linkage == LINK::objc && thistype) {
137137
if (fd->objc.selector) {
138138
hasObjCSelector = true;
139-
} else if (fd->parent->isClassDeclaration()) {
140-
fd->error("Objective-C `@selector` is missing");
141139
}
142140
}
143141
if (hasObjCSelector) {

0 commit comments

Comments
 (0)
Please sign in to comment.