Skip to content

Replace Expr::getType() with ConstraintSystem::getType(). #6213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 12, 2016
Merged

Replace Expr::getType() with ConstraintSystem::getType(). #6213

merged 1 commit into from
Dec 12, 2016

Conversation

rudkx
Copy link
Contributor

@rudkx rudkx commented Dec 12, 2016

Update CSGen/CSApply/CSSolver to primarily use getType() from
ConstraintSystem.

Currently getType() just returns the type on the expression. As with
setType(), which continues to set the type on the expression, this
will be updated once all the other changes are in place.

This change also moves coerceToRValue from TypeChecker to
CosntraintSystem so that it can access the expression type map in the
constraint system.

Update CSGen/CSApply/CSSolver to primarily use getType() from
ConstraintSystem.

Currently getType() just returns the type on the expression. As with
setType(), which continues to set the type on the expression, this
will be updated once all the other changes are in place.

This change also moves coerceToRValue from TypeChecker to
CosntraintSystem so that it can access the expression type map in the
constraint system.
@rudkx
Copy link
Contributor Author

rudkx commented Dec 12, 2016

@swift-ci Please smoke test

@rudkx rudkx merged commit c320e6f into swiftlang:master Dec 12, 2016
@rudkx rudkx deleted the cs-typemap branch December 12, 2016 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant