File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -1298,25 +1298,24 @@ ConstraintGraph::computeConnectedComponents(
1298
1298
return cc.getComponents ();
1299
1299
}
1300
1300
1301
-
1302
- // / For a given constraint kind, decide if we should attempt to eliminate its
1303
- // / edge in the graph.
1304
- static bool shouldContractEdge (ConstraintKind kind) {
1305
- switch (kind) {
1306
- case ConstraintKind::BindParam:
1307
- return true ;
1308
-
1309
- default :
1310
- return false ;
1311
- }
1312
- }
1313
-
1314
1301
bool ConstraintGraph::contractEdges () {
1315
1302
// Current constraint system doesn't have any closure expressions
1316
1303
// associated with it so there is nothing to here.
1317
1304
if (CS.ClosureTypes .empty ())
1318
1305
return false ;
1319
1306
1307
+ // For a given constraint kind, decide if we should attempt to eliminate its
1308
+ // edge in the graph.
1309
+ auto shouldContractEdge = [](ConstraintKind kind) {
1310
+ switch (kind) {
1311
+ case ConstraintKind::BindParam:
1312
+ return true ;
1313
+
1314
+ default :
1315
+ return false ;
1316
+ }
1317
+ };
1318
+
1320
1319
SmallVector<Constraint *, 16 > constraints;
1321
1320
for (const auto &closure : CS.ClosureTypes ) {
1322
1321
for (const auto ¶m : closure.second ->getParams ()) {
You can’t perform that action at this time.
0 commit comments