From 88fe6213af63ea46c1f6a4530af89960ac8db103 Mon Sep 17 00:00:00 2001 From: Jemma Issroff Date: Tue, 24 Oct 2023 12:05:59 -0300 Subject: [PATCH] Add PostExecutionNode to pm_scope_node_init --- src/prism.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/prism.c b/src/prism.c index 2bef8e3e474..c10e079f6b2 100644 --- a/src/prism.c +++ b/src/prism.c @@ -711,6 +711,11 @@ pm_scope_node_init(const pm_node_t *node, pm_scope_node_t *scope, pm_scope_node_ scope->locals = cast->locals; break; } + case PM_POST_EXECUTION_NODE: { + pm_post_execution_node_t *cast = (pm_post_execution_node_t *) node; + scope->body = (pm_node_t *) cast->statements; + break; + } case PM_PROGRAM_NODE: { pm_program_node_t *cast = (pm_program_node_t *) node; scope->body = (pm_node_t *) cast->statements;