more fixes

This commit is contained in:
water111
2026-04-13 17:20:08 -04:00
parent 3cfa4e3745
commit 5670fce5bd
3 changed files with 44 additions and 8 deletions
+7
View File
@@ -305,6 +305,13 @@ bool Matcher::do_match(Form* input, MatchResult::Maps* maps_out, const Env* cons
}
}
auto as_stack_spill =
dynamic_cast<StackSpillValueElement*>(input->try_as_single_active_element());
if (as_stack_spill) {
got = true;
result = make_stack_slot_access(as_stack_spill->stack_offset());
}
if (got) {
if (m_kind == Kind::REG) {
return result.reg() == *m_reg;