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

set source of OC method when isinferred=true #53852

Closed
wants to merge 1 commit into from

Conversation

aviatesk
Copy link
Member

Otherwise it would cause a segfault when trying to interpret OC without its source set.

Otherwise it would cause a segfault when trying to interpret OC without
its source set.
@aviatesk aviatesk requested a review from Keno March 26, 2024 11:08
Copy link
Member

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it is legal to put inferred source here, and bypass the legalization in jl_method_set_source

Keno added a commit that referenced this pull request Mar 27, 2024
This is an alternative to #53852. I don't think it's semantically legal
to put optimized source into the :source field of a method, but it
should be fine to just look it up from the CodeInstance. That said,
this is a bit of an unusual configuration. In particular it wasn't
even reachable with the surface APIs, which assumed that inferred
IR was always supposed to be compiled.
Keno added a commit that referenced this pull request Mar 27, 2024
This is an alternative to #53852. I don't think it's semantically legal
to put optimized source into the :source field of a method, but it
should be fine to just look it up from the CodeInstance. That said,
this is a bit of an unusual configuration. In particular it wasn't
even reachable with the surface APIs, which assumed that inferred
IR was always supposed to be compiled.
@aviatesk
Copy link
Member Author

Close in favor of #53878.

@aviatesk aviatesk closed this Mar 27, 2024
@aviatesk aviatesk deleted the avi/oc-method-source branch March 27, 2024 14:54
Keno added a commit that referenced this pull request Mar 27, 2024
This is an alternative to #53852. I don't think it's semantically legal
to put optimized source into the :source field of a method, but it
should be fine to just look it up from the CodeInstance. That said, this
is a bit of an unusual configuration. In particular it wasn't even
reachable with the surface APIs, which assumed that inferred IR was
always supposed to be compiled.
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.

2 participants