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

Always use 0 for offset of StaticArray's @buffer #13319

Conversation

HertzDevil
Copy link
Contributor

@HertzDevil HertzDevil commented Apr 14, 2023

Fixes #13317.

@biqqles I could get the interpreter running without assertion failures after this patch. Can you confirm? Fixes #12589.

@biqqles
Copy link

biqqles commented Apr 14, 2023

Happy to confirm the issue is fixed! Thanks.

@straight-shoota straight-shoota added this to the 1.9.0 milestone Apr 14, 2023
@straight-shoota straight-shoota merged commit bc1391d into crystal-lang:master Apr 18, 2023
@HertzDevil HertzDevil deleted the bug/offsetof-staticarray-buffer branch April 18, 2023 22:36
@straight-shoota straight-shoota modified the milestones: 1.9.0, 1.8.2 May 8, 2023
joebonrichie pushed a commit to solus-packages/crystal that referenced this pull request Aug 14, 2023
Summary:
[Changelog](https://github.com/crystal-lang/crystal/blob/1.8.0/CHANGELOG.md)

This build contains fixes for two LLVM assertion failures ([1](crystal-lang/crystal#13305), [2](crystal-lang/crystal#13319)) that previously prevented the compiler specs from passing and interpreter support from working respectively. The latter of these will be released in 1.9.0 but I include it here as a patch.

Test Plan: Tested compilation of simple program and `crystal i`.

Reviewers: #triage_team, Staudey

Reviewed By: #triage_team, Staudey

Subscribers: Staudey

Differential Revision: https://dev.getsol.us/D13954
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.

offsetof triggers LLVM assertion failure on StaticArray LLVM errors since upgrading from llvm 13 to 14
3 participants