Skip to content

Merge/main into next#3019

Merged
huitseeker merged 2 commits intonextfrom
merge/main-into-next
Apr 22, 2026
Merged

Merge/main into next#3019
huitseeker merged 2 commits intonextfrom
merge/main-into-next

Conversation

@huitseeker
Copy link
Copy Markdown
Collaborator

Merges #2955 back into next.

* fix: defer debug variable registration to build() to avoid dedup crash

When `ensure_block()` deduplicates a basic block (returning an existing
MastNodeId with is_new=false), calling `register_debug_vars_for_node()`
on the returned ID violates the CSR structure's sequential ordering
requirement, causing a crash.

* debuginfo: add FrameBase variant and set_value_location to DebugVarInfo

* fixup: add FrameBase to serialization round-trip test

* chore: fix formatting and add changelog entry

* fix: include debug vars in block fingerprint to prevent incorrect dedup

* refactor: keep debug vars external to builder, fix remove_nodes remap

* fix: transfer debug vars during merge_basic_blocks

* fix: preserve debug vars in repeat path's cloned-block dedup

* fix: keep source block metadata during merge_basic_blocks

* fix: transfer debug metadata during MastForest merge and compact

* fix: include debug vars in merger dedup key

- add coverage tests

* fix: preserve metadata in MAST dedup

* fix: preserve asm metadata in builder dedup

* fix: preserve metadata-sensitive assembler dedup

* doc: Update documentation

* test: add more tests for merger

* fix: first-name-wins for procedure names, exact static-link resolution

* fix: skip metadata fingerprint augmentation in stripped builds

* fix: import only selected alias in ensure_external_link

* chore: bump rand to fix

* fix: normalize padded static-link asm-op metadata for padded blocks

---------

Co-authored-by: François Garillot <francois@garillot.net>
@huitseeker huitseeker added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Apr 19, 2026
@huitseeker huitseeker force-pushed the merge/main-into-next branch 2 times, most recently from a3bdfa6 to 4457edd Compare April 22, 2026 10:47
@huitseeker huitseeker force-pushed the merge/main-into-next branch from 4457edd to 6f29ed7 Compare April 22, 2026 10:58
@huitseeker huitseeker merged commit 0c1fe79 into next Apr 22, 2026
21 checks passed
@huitseeker huitseeker deleted the merge/main-into-next branch April 22, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog This PR does not require an entry in the `CHANGELOG.md` file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants