harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 3017c9c4f12e11c392c9c7bc3d0cf70ca1b3440e
parent e7bf4277c1dd4a8763ac3964a6f68d4e3fe942d0
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Sun,  6 Mar 2022 13:15:28 +0000

check: fix @noreturn return type check

Diffstat:
Msrc/check.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/check.c b/src/check.c @@ -2875,7 +2875,7 @@ check_function(struct context *ctx, expect(&adecl->loc, !afndecl->prototype.params, "%s function cannot have parameters", flags); } - if (decl->func.flags & FN_NORETURN) { + if (fntype->func.flags & FN_NORETURN) { expect(&adecl->loc, fntype->func.result == &builtin_type_void, "@noreturn function must return void"); };