aboutsummaryrefslogtreecommitdiff
path: root/pc.y
diff options
context:
space:
mode:
Diffstat (limited to 'pc.y')
-rw-r--r--pc.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/pc.y b/pc.y
index 32be027..72ac10b 100644
--- a/pc.y
+++ b/pc.y
@@ -222,7 +222,7 @@ sub_prog_head
/* Need to duplicate ID.name so it is not freed with inner
* scope*/
- cur_scope->ret_var = scope_insert(cur_scope, strdup($2));
+ cur_scope->ret_var = mknode(strdup($2));
cur_scope->ret_var->var_type = $5;
$$ = $2;