wip: better stack var support (#4222)

Closes #736

---------

Co-authored-by: Hat Kid <6624576+Hat-Kid@users.noreply.github.com>
This commit is contained in:
water111
2026-04-18 18:14:44 -04:00
committed by GitHub
parent 3e3542cb10
commit 637990314b
1385 changed files with 94985 additions and 111624 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 = as_stack_spill->access();
}
if (got) {
if (m_kind == Kind::REG) {
return result.reg() == *m_reg;