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 @@ -3109,17 +3109,6 @@ void TypeAttrSet::diagnoseUnclaimed(CustomAttr *attr,
3109
3109
diagnose (attr->getLocation (), diag::unknown_attribute, typeName);
3110
3110
}
3111
3111
3112
- static bool isSILAttribute (TypeAttrKind attrKind) {
3113
- switch (attrKind) {
3114
- #define SIL_TYPE_ATTR (SPELLING, CLASS ) case TypeAttrKind::CLASS:
3115
- #include " swift/AST/TypeAttr.def"
3116
- return true ;
3117
-
3118
- default :
3119
- return false ;
3120
- }
3121
- }
3122
-
3123
3112
static bool isFunctionAttribute (TypeAttrKind attrKind) {
3124
3113
static const TypeAttrKind FunctionAttrs[] = {
3125
3114
TypeAttrKind::Convention,
@@ -3151,7 +3140,7 @@ void TypeAttrSet::diagnoseUnclaimed(TypeAttribute *attr,
3151
3140
3152
3141
// Use a special diagnostic for SIL attributes.
3153
3142
if (!(options & TypeResolutionFlags::SILType) &&
3154
- isSILAttribute (attr->getKind ())) {
3143
+ TypeAttribute::isSilOnly (attr->getKind ())) {
3155
3144
diagnose (attr->getStartLoc (), diag::unknown_attribute, attr->getAttrName ());
3156
3145
return ;
3157
3146
}
You can’t perform that action at this time.
0 commit comments