aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 13bd3ac..7a16e57 100644
--- a/main.c
+++ b/main.c
@@ -737,6 +737,7 @@ AST* parse_param(PARSER* p) {
AST* param = ast_new(AST_PARAM);
param->var_ty = type_new(TY_INT);
param->name = name;
+ return param;
} else {
fatal_error("parse_param: expect type");
}