This commit is contained in:
water111 2021-08-17 21:19:52 -04:00 committed by GitHub
parent 97ab6a4e12
commit 4a896aaa71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);