aboutsummaryrefslogtreecommitdiff
path: root/expr.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-11-25 09:42:29 -0800
committerMichael Forney <mforney@mforney.org>2021-11-25 09:42:41 -0800
commit06d52f69408299eff611e57b39714b37abbb06a8 (patch)
tree9f4235037f80bfd68c5fb2972653798013113ed1 /expr.c
parente345d6fc4e3223e2d2655114c8829538276a0bb9 (diff)
Add __builtin_unreachable stub
Diffstat (limited to 'expr.c')
-rw-r--r--expr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/expr.c b/expr.c
index 6ff7dd4..5a8086a 100644
--- a/expr.c
+++ b/expr.c
@@ -756,6 +756,10 @@ builtinfunc(struct scope *s, enum builtinkind kind)
expect(TCOMMA, "after type name");
e = mkconstexpr(&typeint, typecompatible(t, typename(s, NULL)));
break;
+ case BUILTINUNREACHABLE:
+ e = mkexpr(EXPRBUILTIN, &typevoid, NULL);
+ e->builtin.kind = BUILTINUNREACHABLE;
+ break;
case BUILTINVAARG:
e = mkexpr(EXPRBUILTIN, NULL, assignexpr(s));
e->builtin.kind = BUILTINVAARG;