File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -1410,13 +1410,6 @@ namespace {
1410
1410
type = CS.getInstanceType (CS.cacheType (E));
1411
1411
assert (type && " Implicit type expr must have type set!" );
1412
1412
type = CS.replaceInferableTypesWithTypeVars (type, locator);
1413
- } else if (CS.hasType (E)) {
1414
- // If there's a type already set into the constraint system, honor it.
1415
- // FIXME: This supports the result builder transform, which sneakily
1416
- // stashes a type in the constraint system through a TypeExpr in order
1417
- // to pass it down to the rest of CSGen. This is a terribly
1418
- // unprincipled thing to do.
1419
- return CS.getType (E);
1420
1413
} else {
1421
1414
auto *repr = E->getTypeRepr ();
1422
1415
assert (repr && " Explicit node has no type repr!" );
You can’t perform that action at this time.
0 commit comments