mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
fix regression: debug safety sometimes incorrectly disabled
This commit is contained in:
1 parent
b581da41f8
commit
0562111b02
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user