From 0dd32cca3b8ad7e2a34ec815996e68e2f81c1da1 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 25 Feb 2026 22:54:10 +0200 Subject: filter out empty nodes from statement list + Fixes tail call analysis that was accidentally broken by 64146b46da45ce69ab380add00459f7b60fe9196 + Kind of wasteful to first allocate empty node and then just throw it away, but I don't have any better ideas at the moment --- include/fwd/ast.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/fwd/ast.h b/include/fwd/ast.h index 1d784f1..f550647 100644 --- a/include/fwd/ast.h +++ b/include/fwd/ast.h @@ -699,6 +699,7 @@ int equiv_node_lists(struct ast *c1, struct ast *c2); struct ast *reverse_ast_list(struct ast *root); struct type *reverse_type_list(struct type *root); +struct ast *filter_empty(struct ast *root); void fix_closures(struct ast *root); #define foreach_node(iter, nodes) \ -- cgit v1.2.3