aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorMarc Tiehuis <marctiehuis@gmail.com>2018-08-23 21:42:09 +1200
committerMarc Tiehuis <marctiehuis@gmail.com>2018-08-23 22:54:46 +1200
commit353419f82d3575dc45631750a8cf08aa4826ec4c (patch)
treee8fcd1fe3d71d1086ddb1425e58cb74bf63e921b /src/codegen.cpp
parent4b68ef45af54abd7ba56878f93132ca608891cf1 (diff)
downloadzig-353419f82d3575dc45631750a8cf08aa4826ec4c.tar.gz
zig-353419f82d3575dc45631750a8cf08aa4826ec4c.zip
Default to strict IEEE floating point
Closes #1227.
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 16595be9dd..e926d14a7e 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -829,15 +829,15 @@ static bool ir_want_fast_math(CodeGen *g, IrInstruction *instruction) {
if (scope->id == ScopeIdBlock) {
ScopeBlock *block_scope = (ScopeBlock *)scope;
if (block_scope->fast_math_set_node)
- return !block_scope->fast_math_off;
+ return block_scope->fast_math_on;
} else if (scope->id == ScopeIdDecls) {
ScopeDecls *decls_scope = (ScopeDecls *)scope;
if (decls_scope->fast_math_set_node)
- return !decls_scope->fast_math_off;
+ return decls_scope->fast_math_on;
}
scope = scope->parent;
}
- return true;
+ return false;
}
static bool ir_want_runtime_safety(CodeGen *g, IrInstruction *instruction) {