From 0562111b0208d94852928f4bc7a7f2b8e335366f Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 28 Sep 2016 11:29:47 -0400 Subject: fix regression: debug safety sometimes incorrectly disabled --- src/codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/codegen.cpp') diff --git a/src/codegen.cpp b/src/codegen.cpp index 296a9998c4..5207b228df 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -356,7 +356,7 @@ static bool want_debug_safety_recursive(CodeGen *g, BlockContext *context) { if (context->safety_set_node || !context->parent) { return !context->safety_off; } - context->safety_off = want_debug_safety_recursive(g, context->parent); + context->safety_off = !want_debug_safety_recursive(g, context->parent); context->safety_set_node = context->parent->safety_set_node; return !context->safety_off; } -- cgit v1.2.3