Skip to content
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

[SR-6] Improve the AST verifier #42632

Open
jopamer opened this issue Nov 6, 2015 · 0 comments
Open

[SR-6] Improve the AST verifier #42632

jopamer opened this issue Nov 6, 2015 · 0 comments
Labels
compiler The Swift compiler itself task

Comments

@jopamer
Copy link
Contributor

jopamer commented Nov 6, 2015

Previous ID SR-6
Radar rdar://problem/17858620
Original Reporter @jopamer
Type Task
Status Reopened
Resolution
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Task
Assignee None
Priority Medium

md5: c8813366828ca436433065a7b8e88402

Issue Description:

We get a lot of bugs that land in backend components because they crash in SILGen, optimization, or IRGen, but are really rooted in type-checker bugs. To help better screen these bugs, and to hopefully catch them sooner, we should put some effort into the AST verifier to make it check more invariants. Currently it misses a lot of basic things, like 'ParenExprs shouldn't change the type of the subexpression' or '*MemberRef should reference a member that's actually reachable from the base type'.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler itself task
Projects
None yet
Development

No branches or pull requests

1 participant