Skip to content

Commit

Permalink
don't need a linenumber anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
littlewhitecloud authored Jul 12, 2024
1 parent f39c382 commit 05330b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 05330b0

Please sign in to comment.