call s_clean before pop context

This commit is contained in:
方而静 2024-06-18 23:16:38 +08:00
parent c4d14847e8
commit 2c5f46f096
Signed by: szTom
GPG Key ID: 072D999D60C6473C

View File

@ -101,6 +101,7 @@ Error* Compiler::pop_context() noexcept{
assert(func->type != FuncType::UNSET); assert(func->type != FuncType::UNSET);
} }
contexts.back().s_clean();
contexts.pop_back(); contexts.pop_back();
return NULL; return NULL;
} }