Skip to content

Conversation

@ringabout
Copy link
Member

@ringabout ringabout commented Oct 9, 2025

fixes #25210
no longer transform addr(obj.field[]) into obj.field to keep the addressing needed for VM

@ringabout ringabout changed the title test deref fixes #25210; VM error when passing object field ref to proc(var T): var T Oct 9, 2025
@ringabout ringabout marked this pull request as ready for review October 9, 2025 14:29
@ringabout
Copy link
Member Author

breaks the JS, I guess I could make some changes on JS backend or something

@Araq Araq merged commit fb4a82f into devel Oct 15, 2025
21 checks passed
@Araq Araq deleted the pr_Hupen branch October 15, 2025 05:21
@github-actions
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from fb4a82f

Hint: mm: orc; opt: speed; options: -d:release
183147 lines; 8.140s; 661.703MiB peakmem

narimiran pushed a commit that referenced this pull request Oct 15, 2025
…var T (#25213)

fixes #25210
no longer transform `addr(obj.field[])` into `obj.field` to keep the
addressing needed for VM

(cherry picked from commit fb4a82f)
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.

VM error when passing object field ref to proc(var T): var T

3 participants