Skip to content

Commit eb8c43e

Browse files
committed
[CSGen] Remove a hack from visitTypeExpr that used to support result builders
1 parent fb4720d commit eb8c43e

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/Sema/CSGen.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,13 +1410,6 @@ namespace {
14101410
type = CS.getInstanceType(CS.cacheType(E));
14111411
assert(type && "Implicit type expr must have type set!");
14121412
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);
14201413
} else {
14211414
auto *repr = E->getTypeRepr();
14221415
assert(repr && "Explicit node has no type repr!");

0 commit comments

Comments
 (0)