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 #21540; deref block at transf phase to make injectdestructors function properly #21688

Merged
merged 5 commits into from
Apr 19, 2023

Conversation

ringabout
Copy link
Member

@ringabout ringabout commented Apr 19, 2023

fixes #21540

If the deref block happens at the codegen phase, injectdestructors cannot know the transformation in advance.

@ringabout ringabout marked this pull request as draft April 19, 2023 06:41
@ringabout ringabout marked this pull request as ready for review April 19, 2023 07:01
@Araq Araq added the merge_when_passes_CI mergeable once green label Apr 19, 2023
@Araq Araq merged commit 9cb06d3 into devel Apr 19, 2023
@Araq Araq deleted the pr_deref_block branch April 19, 2023 09:55
@github-actions
Copy link
Contributor

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

Hint: mm: orc; opt: speed; options: -d:release
166847 lines; 8.398s; 612.363MiB peakmem

capocasa pushed a commit to capocasa/Nim that referenced this pull request May 15, 2023
…uctors function properly (nim-lang#21688)

* fixes nim-lang#21540; deref block at transf phase to make injectdestructors function properly

* add a test case

* add one more test

* fixes the type of block

* transform block
capocasa pushed a commit to capocasa/Nim that referenced this pull request May 16, 2023
…uctors function properly (nim-lang#21688)

* fixes nim-lang#21540; deref block at transf phase to make injectdestructors function properly

* add a test case

* add one more test

* fixes the type of block

* transform block
narimiran pushed a commit that referenced this pull request Jun 19, 2023
…unction properly (#21688)

* fixes #21540; deref block at transf phase to make injectdestructors function properly

* add a test case

* add one more test

* fixes the type of block

* transform block

(cherry picked from commit 9cb06d3)
narimiran pushed a commit that referenced this pull request Jun 19, 2023
…unction properly (#21688)

* fixes #21540; deref block at transf phase to make injectdestructors function properly

* add a test case

* add one more test

* fixes the type of block

* transform block

(cherry picked from commit 9cb06d3)
bung87 pushed a commit to bung87/Nim that referenced this pull request Jul 29, 2023
…uctors function properly (nim-lang#21688)

* fixes nim-lang#21540; deref block at transf phase to make injectdestructors function properly

* add a test case

* add one more test

* fixes the type of block

* transform block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge_when_passes_CI mergeable once green
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Messed up output when using -d:useMalloc on program with block statement, options, and json-parsing
2 participants