From 709a0a338dfaad8febf5a38e018567df6b38ccba Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 29 Apr 2022 20:53:59 +0900 Subject: [PATCH] [qfcc] Return properly from copying a block expression This came up when investigating an internal error from the line above. It turned out the error was correct (problem with converting scalars to vectors), but the break was not. --- tools/qfcc/source/expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index a0037c42a..db2305e83 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -322,7 +322,7 @@ copy_expr (expr_t *e) } if (e->e.block.result && !n->e.block.result) internal_error (e, "bogus block result?"); - break; + return n; case ex_expr: n = new_expr (); *n = *e;