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
Codegen: an Option bound out of a match on an element view, compared with Some(2), is lowered as a pointer-niche compare (icmp of {i32,[1 x i64]} with i32 0) #3057
Both operands to ICmp instruction are not of the same type!
%26 = icmp eq { i32, [1 x i64] } %25, i32 0
===== INVALID LLVM FUNCTION check =====
specs[0] is an element view (&Spec), so the pattern binds start as a view of the payload (D22 §3.8); the == beside Some(2) / None then takes Sema's option-pointer path (the Option[&T] niche: compare with null), while the value is the Option[i64] aggregate. The same bindings read through start.unwrap() == 2, match start: Some(v) => and step.is_none() compile and run. The D65 class (#2385 is the None == cousin): with analyze repro.w audit:resolution's operand-type check should name the comparison, and --dump-typed the binding's recorded type; the fixture spec_ss11_7_multi_index_and_dispatch.w reads its slice bounds through unwrap()/is_none() until this is fixed.
Merged to main ae20d89 (#3248): MirLower gave a bare None the reference's type when the other operand was a view; it now takes the viewed Option's. audit:resolution named the operand before and reports violations=0 after. Fixture test/behavior/behav_3057_option_view_compared_with_none.w.
Activity
#3047 Gap 2 (§11.7): IndexSpec is the spec's enum; MIR builds the spe…
Issues batch A: #1021 #1022 #1023 #2760 #3057 #3060 #3086 #3113 #3114 (…
ehartford commentedon Nov 11, 2026
Merged to main ae20d89 (#3248): MirLower gave a bare None the reference's type when the other operand was a view; it now takes the viewed Option's. audit:resolution named the operand before and reports violations=0 after. Fixture test/behavior/behav_3057_option_view_compared_with_none.w.