From d4c768a481b923d407201c25d3d750040b6ccd44 Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Sun, 10 Aug 2025 02:46:50 -0400 Subject: add type-specifiers to let, N_UNINIT for uninitialized values --- peephole.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'peephole.c') diff --git a/peephole.c b/peephole.c index 58a7612..b8118db 100644 --- a/peephole.c +++ b/peephole.c @@ -250,10 +250,7 @@ static inline int is_zero(Node *n) { /* needs lexer for error reporting */ Node *node_idealize(Node *n, Proc *p, Lexer *l) { - if (!type_check(n)) { - type_err(n, l); - } - + type_check(n, l); if (no_opt) return NULL; /* try to compute a literal value */ -- cgit v1.2.3