From abc137d9a04b5686dd0647a3a71fbfc6ef44a2fd Mon Sep 17 00:00:00 2001 From: Daniil Kovalev Date: Thu, 2 Oct 2025 14:58:41 +0300 Subject: [PATCH] Bridging: Fix typo-related bug in `isValid` property of `swift::Identifier` `isValid` should be computed as `nonempty()`, not `empty()`. See commit 0e0fbc4160bd89c6bdb6ef0856e466426246dd83 introducing this bridge. --- include/swift/AST/Identifier.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/swift/AST/Identifier.h b/include/swift/AST/Identifier.h index 7efec38a97bab..b4285b13ccef8 100644 --- a/include/swift/AST/Identifier.h +++ b/include/swift/AST/Identifier.h @@ -123,7 +123,7 @@ class Identifier { bool nonempty() const { return !empty(); } #ifdef COMPILED_WITH_SWIFT SWIFT_COMPUTED_PROPERTY - bool getIsValid() const { return empty(); } + bool getIsValid() const { return nonempty(); } #endif /// isOperator - Return true if this identifier is an operator, false if it is