authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2016-09-28 11:29:47-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2016-09-28 11:29:47-04:00
log0562111b0208d94852928f4bc7a7f2b8e335366f
treeed5ad05ea05ac2f1e3c00ba6fcee8ae6103d0e51
parentb581da41f82cd1e19701030bf47675b426608adf

fix regression: debug safety sometimes incorrectly disabled


1 files changed, 1 insertions(+), 1 deletions(-)

src/codegen.cpp+1-1
......@@ -356,7 +356,7 @@ static bool want_debug_safety_recursive(CodeGen *g, BlockContext *context) {
356356 if (context->safety_set_node || !context->parent) {
357357 return !context->safety_off;
358358 }
359 context->safety_off = want_debug_safety_recursive(g, context->parent);
359 context->safety_off = !want_debug_safety_recursive(g, context->parent);
360360 context->safety_set_node = context->parent->safety_set_node;
361361 return !context->safety_off;
362362}