Skip to content

Fix inline local variable assignment codegen#198

Open
Thanhdn1984 wants to merge 1 commit into
Syncleus:masterfrom
Thanhdn1984:fix-inline-declaration-bounty-97
Open

Fix inline local variable assignment codegen#198
Thanhdn1984 wants to merge 1 commit into
Syncleus:masterfrom
Thanhdn1984:fix-inline-declaration-bounty-97

Conversation

@Thanhdn1984
Copy link
Copy Markdown

Fixes #97.

This removes the CodeGenException thrown for inline assignment to a local variable whose declaration has already been hoisted/emitted by the surrounding block, and updates the existing AssignAndPassAsParameterSimple codegen test from expected failure to expected OpenCL output.

Verification:

  • Local Java/Maven unavailable in this runner (java/mvn not installed), so I could not run the Maven test suite locally.
  • Patch is surgical: only BlockWriter inline assignment emission + the existing regression test expectation changed.

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.

[Bounty $20] Inline declarations throw exception.

1 participant