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 #18081; fixes #18079; fixes #18080; nested ref/deref'd types #24335

Merged
merged 12 commits into from
Oct 25, 2024
Merged

Conversation

ringabout
Copy link
Member

@ringabout ringabout commented Oct 21, 2024

fixes #18081;
fixes #18080
fixes #18079

reverts #20738

It is probably more reasonable to use the type node from nkObjConstr since it is barely changed unlike the external type, which is susceptible to code transformation e.g. addr(deref objconstr).

@ringabout ringabout marked this pull request as draft October 21, 2024 15:36
@ringabout
Copy link
Member Author

ringabout commented Oct 21, 2024

I will check tranf instead. Or add a specific checking for isRef like or e[0].typ.skipTypes.kind == tyRef

compiler/ccgexprs.nim Outdated Show resolved Hide resolved
@ringabout ringabout marked this pull request as ready for review October 22, 2024 01:01
@ringabout ringabout marked this pull request as draft October 22, 2024 01:02
@ringabout ringabout changed the title fixes #18081; fixes #18079; nested ref/deref'd types fixes #18081; fixes #18079; fixes #18080; nested ref/deref'd types Oct 22, 2024
@ringabout

This comment was marked as outdated.

@ringabout ringabout closed this Oct 22, 2024
@ringabout ringabout reopened this Oct 22, 2024
@ringabout ringabout marked this pull request as ready for review October 22, 2024 15:04
@Araq Araq merged commit aa90d00 into devel Oct 25, 2024
22 checks passed
@Araq Araq deleted the pr_ref_new branch October 25, 2024 20:36
Copy link
Contributor

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

Hint: mm: orc; opt: speed; options: -d:release
175657 lines; 8.652s; 654.809MiB peakmem

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