aboutsummaryrefslogtreecommitdiffhomepage
path: root/c/c.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-11-23 12:02:27 +0100
committerlemon <lsof@mailbox.org>2025-11-23 15:29:55 +0100
commit1f72464c6451fcff16180d00af537225acc9b83c (patch)
tree3ea1d99164f990fb2ce331abbf44de2a0db48f25 /c/c.c
parentf4488e9153a4ead6f427902237cca93c67fec2bd (diff)
implement float varargs, and some other fixes
Diffstat (limited to 'c/c.c')
-rw-r--r--c/c.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/c/c.c b/c/c.c
index 05308e1..2b2688d 100644
--- a/c/c.c
+++ b/c/c.c
@@ -2677,6 +2677,9 @@ expraddr(struct function *fn, const struct expr *ex)
case ECALL:
assert(isagg(ex->ty));
return compilecall(fn, ex);
+ case EVAARG:
+ assert(isagg(ex->ty));
+ return builtin_va_arg_comp(fn, ex, 0);
case EINIT:
if (fn) {
/* compound literal, allocate temp */