diff options
| author | 2022-08-15 15:39:34 +0200 | |
|---|---|---|
| committer | 2022-08-15 15:39:34 +0200 | |
| commit | 9a81784d8331fb59465cb9eed6207ebd3ceb25ff (patch) | |
| tree | 6c83dbbe37bc10bee09741e07ea35cca228dfd61 /bootstrap/parse.c | |
| parent | feeb86d046d55d197040c7061e39198c80373ecb (diff) | |
self hosted hello world parses
Diffstat (limited to 'bootstrap/parse.c')
| -rw-r--r-- | bootstrap/parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bootstrap/parse.c b/bootstrap/parse.c index 1848caf..aeb8124 100644 --- a/bootstrap/parse.c +++ b/bootstrap/parse.c @@ -1690,6 +1690,8 @@ pexcmp(struct parser *P) { if (matchcmpop(P, &tok)) { P->targty = ex.ty; struct expr rhs = pexbitarith(P); + P->used_targty = 0; + P->targty = NULL; if (!typeof2(ex.ty, rhs.ty)) fatal(P, tok.span, "incompatible operands %t and %t to binary operator %T", ex.ty, rhs.ty, tok); |