diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-09-05 17:59:44 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-09-05 18:03:17 -0400 |
commit | c6d13abfc122c15ecc182b1fc5645628e8eb4d18 (patch) | |
tree | 3cc20de947e6cea8d725d9efd0dd6aeb1b2e95eb /pc.y | |
parent | d8a7a9b0ed653ec8061896efc0c8e11b5df6b166 (diff) |
Add function argument types
Diffstat (limited to 'pc.y')
-rw-r--r-- | pc.y | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -188,6 +188,9 @@ sub_prog_head tmp->func_info->argc = i; assert(tmp->func_info->argv = malloc(i * sizeof(int))); + print_tree($3); + assert(!set_func_types($3, tmp->func_info->argv, i)); + tmp->var_type = $5; cur_scope->ret_var = scope_insert(cur_scope, $2); |