Skip to content

Commit f400eca

Browse files
authored
Fix incorrect variable name
1 parent 49c65fa commit f400eca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/PrintAsObjC/PrintAsObjC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ class ObjCPrinter : private DeclVisitor<ObjCPrinter>,
614614
os << " SWIFT_UNAVAILABLE";
615615
skipAvailability = true;
616616
// If -init is unavailable, then +new should be, too:
617-
const bool selectorIsInit = selectorPieces.getNumArgs() == 0 && selectorPieces.front().str() == "init";
617+
const bool selectorIsInit = selector.getNumArgs() == 0 && selectorPieces.front().str() == "init";
618618
makeNewUnavailable = selectorIsInit;
619619
} else if (ctor->isDesignatedInit() &&
620620
!isa<ProtocolDecl>(ctor->getDeclContext())) {

0 commit comments

Comments
 (0)