Skip to content

[JuliaLowering] Fix @nospecialize multi-arg and add 0-arg#61021

Open
aviatesk wants to merge 1 commit intomasterfrom
avi/JuliaLowering-nospecialize
Open

[JuliaLowering] Fix @nospecialize multi-arg and add 0-arg#61021
aviatesk wants to merge 1 commit intomasterfrom
avi/JuliaLowering-nospecialize

Conversation

@aviatesk
Copy link
Member

Split the single @nospecialize(ctx, ex, exs...) method into properly typed variants:

  • 0-arg: emits [K"meta" "nospecialize"] for blanket usage
  • 1-arg: applies _apply_nospecialize to the argument
  • 2+-arg: applies _apply_nospecialize to all arguments

The previous implementation only processed the first argument when multiple were given (the rest were silently ignored).

Split the single `@nospecialize(ctx, ex, exs...)` method into
properly typed variants:
- 0-arg: emits `[K"meta" "nospecialize"]` for blanket usage
- 1-arg: applies `_apply_nospecialize` to the argument
- 2+-arg: applies `_apply_nospecialize` to all arguments

The previous implementation only processed the first argument
when multiple were given (the rest were silently ignored).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@aviatesk aviatesk requested a review from c42f February 13, 2026 15:25
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