Skip to content

refactor: tidy this sprint's checker, emitter and overflow code - #1403

Merged
kacy merged 4 commits into
mainfrom
refactor-sprint
Nov 15, 2026
Merged

kacy merged 4 commits into
mainfrom
refactor-sprint

Conversation

@kacy

@kacy kacy commented Nov 15, 2026

Copy link
Copy Markdown
Owner

A cleanup pass over this sprint's changes, with no change in behavior:

  • check_argument_labels and check_holding_call each collected a declaration's parameter names; both now use declared_param_names.
  • The emitter flag that turns off overflow checks was named for loop counters only, but it covers index offsets too; it is now ir_plain_int_arith.
  • emit_checked_int_arith still took the codegen, func-ref cache and runtime table it needed when the overflow path was a runtime call. The path is a trap now, so those parameters are gone.

Runtime and codegen tests, regressions on both ABIs, std, examples, the invalid, diagnostic, cli and lsp goldens, the abort goldens and the crash guard all pass. The bootstrap seed is refreshed.

@kacy
kacy merged commit 7453098 into main Nov 15, 2026
4 checks passed
@kacy
kacy deleted the refactor-sprint branch November 15, 2026 01:53
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