Skip to content

Commit 1ee12c5

Browse files
committed
[NFC] Ensure Identifier::is() usable in debugger
1 parent 5eb942c commit 1ee12c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/swift/AST/Identifier.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ class Identifier {
9494

9595
bool empty() const { return Pointer == nullptr; }
9696

97-
bool is(StringRef string) const { return str().equals(string); }
97+
LLVM_ATTRIBUTE_USED bool is(StringRef string) const {
98+
return str().equals(string);
99+
}
98100

99101
/// isOperator - Return true if this identifier is an operator, false if it is
100102
/// a normal identifier.

0 commit comments

Comments
 (0)