From 1cfd20bbd29c88284aa6c2fa48c04588ae1c9b78 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 4 May 2025 14:16:49 +0900 Subject: fix an issue where parse_param returns nothing --- main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'main.c') 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"); } -- cgit v1.2.3-70-g09d2