diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-09-28 11:29:47 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-09-28 11:29:47 -0400 |
| commit | 0562111b0208d94852928f4bc7a7f2b8e335366f (patch) | |
| tree | ed5ad05ea05ac2f1e3c00ba6fcee8ae6103d0e51 /src | |
| parent | b581da41f82cd1e19701030bf47675b426608adf (diff) | |
| download | zig-0562111b0208d94852928f4bc7a7f2b8e335366f.tar.gz zig-0562111b0208d94852928f4bc7a7f2b8e335366f.zip | |
fix regression: debug safety sometimes incorrectly disabled
Diffstat (limited to 'src')
| -rw-r--r-- | src/codegen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
