Skip to content

Commit a9e43a4

Browse files
authored
Bridging: Fix typo-related bug in isValid property of swift::Identifier (#84649)
`isValid` should be computed as `nonempty()`, not `empty()`. See commit 0e0fbc4 introducing this bridge.
1 parent 96ee032 commit a9e43a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/AST/Identifier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class Identifier {
123123
bool nonempty() const { return !empty(); }
124124
#ifdef COMPILED_WITH_SWIFT
125125
SWIFT_COMPUTED_PROPERTY
126-
bool getIsValid() const { return empty(); }
126+
bool getIsValid() const { return nonempty(); }
127127
#endif
128128

129129
/// isOperator - Return true if this identifier is an operator, false if it is

0 commit comments

Comments
 (0)