aboutsummaryrefslogtreecommitdiff
path: root/decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'decl.c')
-rw-r--r--decl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/decl.c b/decl.c
index 0749017..39c272d 100644
--- a/decl.c
+++ b/decl.c
@@ -1066,6 +1066,8 @@ decl(struct scope *s, struct func *f)
s = funcscope;
f = mkfunc(d, name, t, s);
stmt(f, s);
+ if (d->u.func.isnoreturn)
+ funchlt(f);
/* XXX: need to keep track of function in case a later declaration specifies extern */
if (!d->u.func.inlinedefn)
emitfunc(f, d->linkage == LINKEXTERN);