mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
fix bug (#765)
This commit is contained in:
parent
97ab6a4e12
commit
4a896aaa71
|
@ -412,6 +412,9 @@ bool is_nonvirtual_state(LetElement* elt) {
|
|||
void run_defstate(Function& top_level_func) {
|
||||
auto& env = top_level_func.ir2.env;
|
||||
auto& pool = *top_level_func.ir2.form_pool;
|
||||
if (!top_level_func.ir2.top_form) {
|
||||
return;
|
||||
}
|
||||
top_level_func.ir2.top_form->apply_form([&](Form* form) {
|
||||
for (auto& fe : form->elts()) {
|
||||
auto as_let = dynamic_cast<LetElement*>(fe);
|
||||
|
|
Loading…
Reference in a new issue