From 77158130ca678b0923c7390c5b7024dc2906af2e Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 18 Jan 2025 16:42:13 +0900 Subject: [PATCH] [qfcc] Flush dags aggressively for if statements I'm sure there are more places that need flushing, but this gets game-code/quakeworld building. --- tools/qfcc/source/expr_process.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/qfcc/source/expr_process.c b/tools/qfcc/source/expr_process.c index f53364a97..76acf1b39 100644 --- a/tools/qfcc/source/expr_process.c +++ b/tools/qfcc/source/expr_process.c @@ -813,8 +813,11 @@ static const expr_t * proc_select (const expr_t *expr, rua_ctx_t *ctx) { auto test = expr_process (expr->select.test, ctx); + edag_flush (); auto true_body = expr_process (expr->select.true_body, ctx); + edag_flush (); auto false_body = expr_process (expr->select.false_body, ctx); + edag_flush (); scoped_src_loc (expr); auto select = new_select_expr (expr->select.not, test, true_body, nullptr, false_body);