parser+codegen: Handle function epilogue

Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
2026-02-15 23:11:52 -05:00
parent 87f0cfcdb0
commit 07db3ee834
3 changed files with 28 additions and 5 deletions

View File

@@ -13,6 +13,10 @@ resolve_func(struct rifle_state *state, struct ast_node *root)
return -1;
}
if (root->epilogue) {
return mu_gen_ret(state);
}
if ((symbol = root->symbol) == NULL) {
trace_error(state, "internal: no symbol associated with func node\n");
return -1;