From 9a81784d8331fb59465cb9eed6207ebd3ceb25ff Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 15 Aug 2022 15:39:34 +0200 Subject: self hosted hello world parses --- bootstrap/parse.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bootstrap') 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); -- cgit v1.2.3