Skip to content

[4.1][AST] Make sure that if a TupleExpr is created with element names but not name locations, it is marked implicit as appropriate #13888

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

Conversation

akyrtzi
Copy link
Contributor

@akyrtzi akyrtzi commented Jan 12, 2018

Fixes a crash for SourceEntityWalker which assumed that a non-implicit TupleExpr has source locations for its name elements.

Fixes SR-6517, rdar://35830880

master: #13878

… not name locations, it is marked implicit as appropriate

Fixes a crash for SourceEntityWalker which assumed that a non-implicit TupleExpr has source locations for its name elements.

Fixes SR-6517, rdar://35830880
@akyrtzi
Copy link
Contributor Author

akyrtzi commented Jan 12, 2018

@swift-ci Please test

@akyrtzi
Copy link
Contributor Author

akyrtzi commented Jan 12, 2018

  • Explanation: Fixes a crash for SourceEntityWalker which assumed that a non-implicit TupleExpr has source locations for its name elements. A certain pattern of invalid code violated this invariant.
  • Risk: Low, the changes mostly make sure that TupleExprs without source locations are marked as implicit appropriately.
  • Reviewed By: Nathan Hawes
  • Testing: Automated test suite with extra cases
  • Directions for QA: N/A
  • Radar: rdar://35830880
  • JIRA: SR-6517

@akyrtzi akyrtzi merged commit de596ee into swiftlang:swift-4.1-branch Jan 12, 2018
@akyrtzi akyrtzi deleted the fix-crash-invalid-entity-walker-4.1 branch January 12, 2018 02:24
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