Skip to content

Convert DictionaryExpr to not use tc.callWitness() or generate a SemanticExpr. #25408

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
Jun 17, 2019

Conversation

pschuh
Copy link
Contributor

@pschuh pschuh commented Jun 12, 2019

For reference, everything else except string interpolation has been
migrated to this new form.

@pschuh pschuh requested a review from slavapestov June 12, 2019 23:24
@pschuh
Copy link
Contributor Author

pschuh commented Jun 12, 2019

@swift-ci please test

Copy link
Contributor

@slavapestov slavapestov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Is CollectionExpr::getSemanticExpr() now dead too?

…nticExpr.

For reference, everything else except string interpolation has been
migrated to this new form.
@pschuh
Copy link
Contributor Author

pschuh commented Jun 13, 2019

@swift-ci please test

@pschuh
Copy link
Contributor Author

pschuh commented Jun 13, 2019

Yes, I think InterpolatedStringExpr is the last Expr that uses the SemanticExpr solution.

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 7dfdd23d036da74c189a55b802dccb3a1d23b3e2

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 7dfdd23d036da74c189a55b802dccb3a1d23b3e2

@@ -1426,10 +1413,6 @@ namespace {
// we go digging through failed constraints, and expect their locators to
// still be meaningful.
~ExprTypeSaverAndEraser() {
for (auto CSE : CollectionSemanticExprs)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love that ExprTypeSaverAndEraser becomes simpler as well (ideally it wouldn't exist; there's a lot of refactoring before we can do that though!)

@slavapestov slavapestov merged commit 8ea6500 into swiftlang:master Jun 17, 2019
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.

3 participants