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: handle pointers in NilableCast codegen #14499

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ysbaddaden
Copy link
Contributor

Nilable casts (.as?) don't handle pointers, and the behavior of .as? was different from .as where the later would cast a reference to a pointer (for example) while the former would return nil.

  • LLVM codegen of NilableCast
    • bitcast validation errors on LLVM <= 14 (see CI);
  • interpreter has the exact same issue (may be fixed separately);

closes #14491

It previously didn't and the behavior of `.as?` was different from `.as`
where the later would cast a reference to a pointer (for example) while
the former would return nil.
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.

.as? doesn't behave like .as when casting reference to pointer
1 participant