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
Vec[str] element view passed unmarshalled to str parameter — invalid LLVM IR #755
files.get(0) is a D27 element view (&str = place pointer). Passing it to replace(pat: str) is an owned-value demand, so per D22 the view must materialize an independent str — Sema accepts exactly that, but the call-arg lowering passes the raw place pointer where the declared ABI wants the %str fat value by caller/callee divergence. Per D6 this is a FnAbi/PassMode question: the materializing load for a view-typed argument against an owned PassMode::Direct param is missing in push_call_arg (or the demand never reaches it).
Impact
Any vec.get(i) result passed directly to a str-consuming builtin miscompiles. This blocked with -e migration one-liners during #747 tooling work (forced ed fallbacks). Same class will get heavy exercise when #747 flips str to owned, so it should land before or with the flip.
Discovered while hunting the battery-7 UAF; unrelated to that fix (daf9fc5).
Triage 2026-08-31: CLOSE (overcome by events). The filed repro compiles AND runs clean with correct output on the current compiler — the check-ok/run-miscompile divergence closed with the D27/#747 view-materialization work.
Activity
WIP withlang-dev#747 Phase C step 2: tools/wrap_diag_spans.w + wrappe…
ehartford commentedon Aug 31, 2026
Triage 2026-08-31: CLOSE (overcome by events). The filed repro compiles AND runs clean with correct output on the current compiler — the check-ok/run-miscompile divergence closed with the D27/#747 view-materialization work.