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

Fix byte sizes for Procs inside extern structs #13711

Conversation

HertzDevil
Copy link
Contributor

@HertzDevil HertzDevil commented Jul 27, 2023

Extern structs store Procs without the closure pointer, so they should use llvm_embedded_c_type rather than llvm_embedded_type for the correct byte sizes.

The total sizes of the extern structs themselves are already correct and unaffected by this PR.

@beta-ziliani beta-ziliani added this to the 1.10.0 milestone Jul 28, 2023
@beta-ziliani beta-ziliani merged commit a5a617d into crystal-lang:master Aug 1, 2023
51 of 53 checks passed
@HertzDevil HertzDevil deleted the bug/hierarchy-extern-struct-proc branch August 1, 2023 17:07
@straight-shoota straight-shoota changed the title Hierarchy tool: Fix byte sizes for Procs inside extern structs Fix byte sizes for Procs inside extern structs Oct 9, 2023
Blacksmoke16 pushed a commit to Blacksmoke16/crystal that referenced this pull request Dec 11, 2023
…tal-lang#13711)

Extern structs store `Proc`s without the closure pointer, so they should use `llvm_embedded_c_type` rather than `llvm_embedded_type` for the correct byte sizes.

The total sizes of the extern structs themselves are already correct and unaffected by this PR.
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants