File tree Expand file tree Collapse file tree 3 files changed +2
-19
lines changed
test/api-digester/Outputs Expand file tree Collapse file tree 3 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -57,14 +57,11 @@ cake1: Var GlobalVarChangedToLet changes from var to let
57
57
/* Fixed-layout Type changes */
58
58
cake1: EnumElement FrozenKind.Fixed in a non-resilient type changes position from 1 to 2
59
59
cake1: EnumElement FrozenKind.Rigid in a non-resilient type changes position from 2 to 1
60
- cake1: Func _NoResilientClass.FuncPositionChange0() in a non-resilient type changes position from 0 to 2
61
- cake1: Func _NoResilientClass.NoLongerFinalFunc() is now a non-final instance function
62
60
cake1: Var fixedLayoutStruct.a in a non-resilient type changes position from 1 to 0
63
61
cake1: Var fixedLayoutStruct.b in a non-resilient type changes position from 0 to 1
64
62
cake1: Var fixedLayoutStruct2.BecomeFixedBinaryOrder is now a stored property
65
63
cake1: Var fixedLayoutStruct2.NoLongerWithFixedBinaryOrder is no longer a stored property
66
64
cake2: EnumElement FrozenKind.AddedCase is added to a non-resilient type
67
- cake2: Func _NoResilientClass.FuncPositionChange2() is added to a non-resilient type
68
65
cake2: Var fixedLayoutStruct.c is added to a non-resilient type
69
66
cake2: Var fixedLayoutStruct.lazy_d.storage is added to a non-resilient type
70
67
Original file line number Diff line number Diff line change 212
212
"usr" : " s:4cake2C1C4foo1yyFZ" ,
213
213
"moduleName" : " cake" ,
214
214
"static" : true ,
215
- "fixedbinaryorder" : 0 ,
216
215
"funcSelfKind" : " NonMutating"
217
216
},
218
217
{
Original file line number Diff line number Diff line change @@ -1073,30 +1073,17 @@ Optional<uint8_t> SDKContext::getFixedBinaryOrder(ValueDecl *VD) const {
1073
1073
}
1074
1074
return false ;
1075
1075
};
1076
- // The relative order of non-final instance functions matters for non-resilient
1077
- // class.
1078
- auto isNonfinalFunc = [](Decl *M) {
1079
- if (auto *FD = dyn_cast<FuncDecl>(M)) {
1080
- return !isa<AccessorDecl>(FD) && !FD->isFinal ();
1081
- }
1082
- return false ;
1083
- };
1076
+
1084
1077
switch (NTD->getKind ()) {
1085
1078
case DeclKind::Enum: {
1086
1079
return getSimilarMemberCount (NTD, VD, [](Decl *M) {
1087
1080
return isa<EnumElementDecl>(M);
1088
1081
});
1089
1082
}
1083
+ case DeclKind::Class:
1090
1084
case DeclKind::Struct: {
1091
1085
return getSimilarMemberCount (NTD, VD, isStored);
1092
1086
}
1093
- case DeclKind::Class: {
1094
- if (auto count = getSimilarMemberCount (NTD, VD, isStored)) {
1095
- return count;
1096
- } else {
1097
- return getSimilarMemberCount (NTD, VD, isNonfinalFunc);
1098
- }
1099
- }
1100
1087
default :
1101
1088
llvm_unreachable (" bad nominal type kind." );
1102
1089
}
You can’t perform that action at this time.
0 commit comments