From 4f8b3b56925e67794f262324c5a394ffaec7493a Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 24 Nov 2012 19:06:10 +0900 Subject: [PATCH] More empty block checks. --- tools/qfcc/source/statements.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/qfcc/source/statements.c b/tools/qfcc/source/statements.c index 013e067f5..e0fa3eb77 100644 --- a/tools/qfcc/source/statements.c +++ b/tools/qfcc/source/statements.c @@ -1310,6 +1310,8 @@ merge_blocks (sblock_t *blocks) break; if (!sb) // dest is internal_error (0, "dangling label"); + if (!sb->statements) + continue; s = (statement_t *) sb->tail; if (!is_goto (s) && !is_return (s)) continue;