From 05330b00803de65ea721ff7ab69e6741cac769d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E7=99=BD=E4=BA=91?= <71159641+littlewhitecloud@users.noreply.github.com> Date: Fri, 12 Jul 2024 22:05:52 +0800 Subject: [PATCH] don't need a linenumber anymore --- src/codegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen.c b/src/codegen.c index 4ea198e1..35bcc6b0 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -525,7 +525,7 @@ LLVMModuleRef codegen(const CfGraphFile *cfgfile, const FileTypes *ft, bool chec if (checkmain && mainflag == false) { struct Location l = { .filename = cfgfile->filename, - .lineno = 1, + .lineno = 0, }; fail(l, "missing `main` function to execute the program"); }