File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -8183,25 +8183,16 @@ void GenericSignatureBuilder::enumerateRequirements(
8183
8183
}
8184
8184
}
8185
8185
8186
- // Sort the protocols in canonical order.
8187
- llvm::array_pod_sort (protocols.begin (), protocols.end (),
8188
- TypeDecl::compare);
8189
-
8190
8186
// Enumerate the conformance requirements.
8191
8187
for (auto proto : protocols) {
8192
8188
recordRequirement (RequirementKind::Conformance, subjectType, proto);
8193
8189
}
8194
8190
}
8195
8191
}
8196
8192
8197
- // Sort the subject types in canonical order. This needs to be a stable sort
8198
- // so that the relative order of requirements that have the same subject type
8199
- // is preserved.
8200
- std::stable_sort (requirements.begin (), requirements.end (),
8201
- [](const Requirement &lhs, const Requirement &rhs) {
8202
- return compareDependentTypes (lhs.getFirstType (),
8203
- rhs.getFirstType ()) < 0 ;
8204
- });
8193
+ // Sort the requirements in canonical order.
8194
+ llvm::array_pod_sort (requirements.begin (), requirements.end (),
8195
+ compareRequirements);
8205
8196
}
8206
8197
8207
8198
void GenericSignatureBuilder::dump () {
You can’t perform that action at this time.
0 commit comments