From 986d58877fb9bbf0865ca9406443fb3fd442ea2b Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Mon, 19 Nov 2012 22:08:38 +0100 Subject: [PATCH] Enter the outgoing block after a switch --- ast.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ast.c b/ast.c index 4da45ea..c503c65 100644 --- a/ast.c +++ b/ast.c @@ -2389,6 +2389,8 @@ bool ast_switch_codegen(ast_switch *self, ast_function *func, bool lvalue, ir_va /* Jump from the last bnot to bout */ if (!func->curblock->final && !ir_block_create_jump(func->curblock, bout)) return false; + /* enter the outgoing block */ + func->curblock = bout; /* restore the break block */ func->breakblock = old_break; -- 2.39.2