Skip to content

ir: Don't fail if :invoke has zero arguments #58477

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

Merged
merged 1 commit into from
May 21, 2025
Merged

ir: Don't fail if :invoke has zero arguments #58477

merged 1 commit into from
May 21, 2025

Conversation

Keno
Copy link
Member

@Keno Keno commented May 21, 2025

All julia functions always have at least one argument (ignoring toplevel thunks, but those have special representation). However, with ABIOverride it is possible to create zero argument CodeInstances and :invoke them. I'm not entirely sure this is useful, but things do generally seem to go through, so let's not unnecessarily error in the optimizer.

All julia functions always have at least one argument (ignoring
toplevel thunks, but those have special representation). However, with
ABIOverride it is possible to create zero argument CodeInstances
and :invoke them. I'm not entirely sure this is useful, but things
do generally seem to go through, so let's not unnecessarily error
in the optimizer.
@Keno Keno merged commit 3466a16 into master May 21, 2025
5 of 7 checks passed
@Keno Keno deleted the kf/invokezeroarg branch May 21, 2025 13:32
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