File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -3112,17 +3112,6 @@ void TypeAttrSet::diagnoseUnclaimed(CustomAttr *attr,
3112
3112
diagnose (attr->getLocation (), diag::unknown_attribute, typeName);
3113
3113
}
3114
3114
3115
- static bool isSILAttribute (TypeAttrKind attrKind) {
3116
- switch (attrKind) {
3117
- #define SIL_TYPE_ATTR (SPELLING, CLASS ) case TypeAttrKind::CLASS:
3118
- #include " swift/AST/TypeAttr.def"
3119
- return true ;
3120
-
3121
- default :
3122
- return false ;
3123
- }
3124
- }
3125
-
3126
3115
static bool isFunctionAttribute (TypeAttrKind attrKind) {
3127
3116
static const TypeAttrKind FunctionAttrs[] = {
3128
3117
TypeAttrKind::Convention,
@@ -3154,7 +3143,7 @@ void TypeAttrSet::diagnoseUnclaimed(TypeAttribute *attr,
3154
3143
3155
3144
// Use a special diagnostic for SIL attributes.
3156
3145
if (!(options & TypeResolutionFlags::SILType) &&
3157
- isSILAttribute (attr->getKind ())) {
3146
+ TypeAttribute::isSilOnly (attr->getKind ())) {
3158
3147
diagnose (attr->getStartLoc (), diag::unknown_attribute, attr->getAttrName ());
3159
3148
return ;
3160
3149
}
You can’t perform that action at this time.
0 commit comments