commit 0562111b0208d94852928f4bc7a7f2b8e335366f (tree)
parent b581da41f82cd1e19701030bf47675b426608adf
Author: Andrew Kelley <superjoe30@gmail.com>
Date: Wed, 28 Sep 2016 11:29:47 -0400
fix regression: debug safety sometimes incorrectly disabled
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;
}