aboutsummaryrefslogtreecommitdiff
path: root/expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'expr.c')
-rw-r--r--expr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/expr.c b/expr.c
index 19dd012..0da1d43 100644
--- a/expr.c
+++ b/expr.c
@@ -668,8 +668,7 @@ builtinfunc(struct scope *s, enum builtinkind kind)
e = assignexpr(s);
if (!typesame(e->type, typeadjvalist))
error(&tok.loc, "va_end argument must have type va_list");
- e = mkexpr(EXPRBUILTIN, &typevoid, NULL);
- e->builtin.kind = BUILTINVAEND;
+ e = exprconvert(e, &typevoid);
break;
case BUILTINVASTART:
e = mkexpr(EXPRBUILTIN, &typevoid, assignexpr(s));