From 35026000bb66a2ab5ddc46c730618ce67f100e70 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 19 Aug 2021 11:40:26 +0100 Subject: Fix deadlock caused by typo --- src/check_stmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/check_stmt.cpp') diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 504c23d53..2e407e6c6 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1136,7 +1136,7 @@ void check_switch_stmt(CheckerContext *ctx, Ast *node, u32 mod_flags) { if (unhandled.count > 0) { begin_error_block(); - defer (begin_error_block()); + defer (end_error_block()); if (unhandled.count == 1) { error_no_newline(node, "Unhandled switch case: %.*s", LIT(unhandled[0]->token.string)); -- cgit v1.2.3