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

fixes deref nkStmtListExpr for ORC; ref #20246 #20261

Closed
wants to merge 1 commit into from
Closed

Conversation

ringabout
Copy link
Member

@ringabout ringabout commented Aug 23, 2022

ref #20246

ORC likes to create temporaries for blocks and as a result it produces nkStmtListExpr in some cases. However, it doesn't seem that we can deref nkStmtListExpr properly. In this PR, I add some hacks to circumvent it. Otherwise, tests/ccgbugs/tderefblock.nim gives nilAccess defect with ARC/ORC.

@Araq
Copy link
Member

Araq commented Aug 23, 2022

Don't add hacks, instead canonicalise statement list expressions.

@ringabout ringabout mentioned this pull request Aug 29, 2022
@ringabout ringabout closed this Aug 30, 2022
@ringabout ringabout deleted the pr_hack_orc branch August 30, 2022 15:29
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.

2 participants