hotfix: cyclic functions hoisted as a dependency used the wrong key to modify its own cyclic_calls

This commit is contained in:
microproofs 2023-09-29 22:01:43 -04:00
parent 82ceb5b696
commit add513790d
1 changed files with 1 additions and 1 deletions

View File

@ -3236,7 +3236,7 @@ impl<'a> CodeGenerator<'a> {
let mut functions = functions.clone(); let mut functions = functions.clone();
for (_, body) in functions.iter_mut() { for (_, body) in functions.iter_mut() {
modify_cyclic_calls(body, key, &self.cyclic_functions); modify_cyclic_calls(body, &dep_key, &self.cyclic_functions);
} }
dep_insertions.push(AirTree::define_cyclic_func( dep_insertions.push(AirTree::define_cyclic_func(