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

Local variable names not guaranteed unique within CIL method scope #202

Closed
degory opened this issue Jul 25, 2020 · 0 comments · Fixed by #205
Closed

Local variable names not guaranteed unique within CIL method scope #202

degory opened this issue Jul 25, 2020 · 0 comments · Fixed by #205
Assignees
Labels

Comments

@degory
Copy link
Owner

degory commented Jul 25, 2020

CIL assembler does not support nesting additional scopes within a method's scope. As a result multiple uses of the same local variable name within different block scopes of the same ghul function results in invalid CIL.

Need to find a way to disambiguate local variables that have the same name but different scopes.

Probably easiest just to number all variables as they're encountered, either in the declare-symbols pass or in the generate-il pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant