Skip to content

Commit 3e72cf9

Browse files
committed
[swift-api-digester] Update for 'deinit' as a special name.
Missed switch case from the 17ddc58 series. Unbreaks the build after -Werror=switch.
1 parent dc1d094 commit 3e72cf9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/swift-api-digester/swift-api-digester.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,9 +1096,12 @@ static StringRef getEscapedName(DeclBaseName name) {
10961096
switch (name.getKind()) {
10971097
case DeclBaseName::Kind::Subscript:
10981098
return "subscript";
1099+
case DeclBaseName::Kind::Destructor:
1100+
return "deinit";
10991101
case DeclBaseName::Kind::Normal:
11001102
return llvm::StringSwitch<StringRef>(name.getIdentifier().str())
11011103
.Case("subscript", "`subscript`")
1104+
.Case("deinit", "`deinit`")
11021105
.Default(name.getIdentifier().str());
11031106
}
11041107
}

0 commit comments

Comments
 (0)