diff options
| author | 2022-08-13 11:04:37 +0200 | |
|---|---|---|
| committer | 2022-08-13 11:04:37 +0200 | |
| commit | dd4536a8b0dbb770ee1e9e7e492a75157ba0f8e6 (patch) | |
| tree | 45cacc79a84e89740d5e99c463216dddfa26601c /bootstrap/parse.c | |
| parent | 7d4cb5bb96b061ed8708889b75e4d50757d9b3f2 (diff) | |
retty
Diffstat (limited to 'bootstrap/parse.c')
| -rw-r--r-- | bootstrap/parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap/parse.c b/bootstrap/parse.c index 874b54d..197b61b 100644 --- a/bootstrap/parse.c +++ b/bootstrap/parse.c @@ -2378,7 +2378,7 @@ parsestmt(stmt_yielder_t yield, void *yarg, struct parser *P) { P->targty = P->curfn->retty; st.retex = exprdup(parseexpr(P)); lexexpect(P, ';'); - if (!typematchestarg(st.retex->ty, P->curfn->retty)) + if (!typematchestarg(P->curfn->retty, st.retex->ty)) fatal(P, st.retex->span, "incompatible type in return statement (%t, expected %t)", st.retex->ty, P->curfn->retty); |