aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-08-22 11:54:58 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-08-22 11:54:58 -0400
commit5dddb45ec71ae93750fddda932ef8b7d2ffa293d (patch)
tree5cfdfe50136922b7d0540299d48e6918c0c1e1a0
parent0a922d3bca7fc65a9280f4869afce73a55b9c9cf (diff)
downloadzig-5dddb45ec71ae93750fddda932ef8b7d2ffa293d.tar.gz
zig-5dddb45ec71ae93750fddda932ef8b7d2ffa293d.zip
fix compiler test errors
closes #428 Thanks Marc Tiehuis for diagnosing this bug
-rw-r--r--src/codegen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 847821e94c..d92a34ee13 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -3951,6 +3951,7 @@ static void do_code_gen(CodeGen *g) {
assert(const_val->special != ConstValSpecialRuntime);
TypeTableEntry *var_type = g->builtin_types.entry_f128;
ConstExprValue coerced_value;
+ coerced_value.special = ConstValSpecialStatic;
coerced_value.type = var_type;
coerced_value.data.x_f128 = bigfloat_to_f128(&const_val->data.x_bigfloat);
LLVMValueRef init_val = gen_const_val(g, &coerced_value);