diff options
Diffstat (limited to 'bootstrap')
| -rw-r--r-- | bootstrap/cgen.c | 1 | ||||
| -rw-r--r-- | bootstrap/parse.c | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap/cgen.c b/bootstrap/cgen.c index 9053331..9a28829 100644 --- a/bootstrap/cgen.c +++ b/bootstrap/cgen.c @@ -606,7 +606,6 @@ static void defctype(const struct type *ty, void *_); static void genfn(bool externp, const char *cname, struct fn *fn) { liftnested(fn->body); - defctype(fn->retty,NULL); if (!externp) pri("static "); pri("%t %s(", fn->retty, cname); diff --git a/bootstrap/parse.c b/bootstrap/parse.c index daf632d..18aa13b 100644 --- a/bootstrap/parse.c +++ b/bootstrap/parse.c @@ -1233,6 +1233,7 @@ pexpostfix(struct parser *P) { if (met) { ex.t = Emcall; ex.mcall.met = met; + ex.ty = ty->fn.retty; vec_slice_cpy(&ex.mcall.args, &args); } else { ex.call.callee = exprdup(ex); |