Skip to content

Fix issues in the tree related to Or_null#2808

Merged
dkalinichenko-js merged 9 commits intomainfrom
dkalinichenko/fix-null-issues
Jul 19, 2024
Merged

Fix issues in the tree related to Or_null#2808
dkalinichenko-js merged 9 commits intomainfrom
dkalinichenko/fix-null-issues

Conversation

@dkalinichenko-js
Copy link
Copy Markdown
Collaborator

Make Probes and variables Captured_in_object value_or_null.

The check for probes happens too late to infer the right nullability for the jkind, so accept or_null for backwards compatibility. Leave a CR to check that this is sound with null pointers.

The check for captured variables similarly happens after generalizing variables in pattern matches on tuples. It should be fine to capture null pointers in objects, so do it.

dkalinichenko-js and others added 3 commits July 19, 2024 15:18
Co-authored-by: Richard Eisenberg <reisenberg@janestreet.com>
@dkalinichenko-js dkalinichenko-js merged commit 32c5fe2 into main Jul 19, 2024
@dkalinichenko-js dkalinichenko-js deleted the dkalinichenko/fix-null-issues branch July 19, 2024 21:39
lukemaurer pushed a commit to lukemaurer/flambda-backend that referenced this pull request Oct 23, 2024
…2808)

* Probes are `value_or_null`

* `Captured_in_object` variables can be null

* fix build on macos?

* fix mac os

* comment

* fix?

* Update ocaml/typing/env.ml

Co-authored-by: Richard Eisenberg <reisenberg@janestreet.com>

* `not-macos`

* wrong `not-macos`

---------

Co-authored-by: Diana Kalinichenko <dkalinichenko@janestreet.com>
Co-authored-by: Richard Eisenberg <reisenberg@janestreet.com>
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.

3 participants