You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MIR: a pipeline stage call omits the callee's default arguments (invalid LLVM: wrong argument count) #2024
Expected: prints n=3.
Actual: Incorrect number of arguments passed to called function! ... LLVM function verification failed after MIR cleanup for main; code generation failed.
Root: MirLower.w lower_pipeline builds [lhs] ++ explicit args and calls lower_call_with_arg_nodes, which never fills the declaration's defaults (lower_call does, through Sema's resolved args or the decl's get_fn_param_default + lower_default_call_arg, which gives src() the call site). The precondition forms' pipeline spelling (c |> require(msg)) is handled by D86's lowering; every other callee with defaults still hits this.
Workaround: none needed in the tree; spell the call show(3).
Fixed in #2035 (draft): Sema fills the argument list for a positional call that leaves parameters to their defaults (and for a bare stage on the pipeline node), and lower_pipeline lowers that list. It also stops the in-pipeline flag leaking into calls among a stage's arguments.
Activity
ehartford commentedon Oct 3, 2026
Fixed in #2035 (draft): Sema fills the argument list for a positional call that leaves parameters to their defaults (and for a bare stage on the pipeline node), and lower_pipeline lowers that list. It also stops the in-pipeline flag leaking into calls among a stage's arguments.
D86 (#1864): assert/require/check are compiler-known forms; the messa…
#2024: pipeline stage calls get the callee's default arguments; #2026:…