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 llvmcall in uninferred code #31006

Closed
wants to merge 1 commit into from
Closed

Conversation

martinholters
Copy link
Member

Before inference is run, ssavaluetypes is not an array, but an integer, and cannot by used to obtain the type. Instead, only use try_eval which is sufficient for common cases like a Tuple of const types.

I ran into this when trying to use llvmcall inside corecompiler. Not sure how to test, though. Is there a way to compile a function without inferring it in a proper julia?

Before inference is run, `ssavaluetypes` is not an array, but an
integer, and cannot by used to obtain the type. Instead, only use
`try_eval` which is sufficient for common cases like a `Tuple` of const
types.
@martinholters
Copy link
Member Author

Was fixed as part of #25984.

@martinholters martinholters deleted the mh/llvmcall_uninferred branch August 20, 2020 06:49
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.

1 participant