diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-03-27 20:32:36 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-03-27 20:32:36 +0100 |
| commit | a75ccb6fbc529d2fee00f9b456ca7c0c830548ee (patch) | |
| tree | cbe963045fb415f9470c0a84fbdbbe6e75f350ff /src/ir_print.c | |
| parent | 188b290dd50664aa8a89955ac2ab7dbebf7a653d (diff) | |
v0.1.3v0.1.3
Diffstat (limited to 'src/ir_print.c')
| -rw-r--r-- | src/ir_print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir_print.c b/src/ir_print.c index 973b3d6a0..beae020db 100644 --- a/src/ir_print.c +++ b/src/ir_print.c @@ -364,7 +364,7 @@ void ir_print_exact_value(irFileBuffer *f, irModule *m, ExactValue value, Type * } } break; case ExactValue_Float: { - GB_ASSERT(is_type_float(type)); + GB_ASSERT_MSG(is_type_float(type), "%s", type_to_string(type)); type = base_type(type); u64 u = *cast(u64*)&value.value_float; switch (type->Basic.kind) { @@ -942,7 +942,7 @@ void ir_print_instr(irFileBuffer *f, irModule *m, irValue *value) { switch (uo->op) { case Token_Sub: if (is_type_float(elem_type)) { - ir_print_exact_value(f, m, exact_value_float(0), type); + ir_print_exact_value(f, m, exact_value_float(0), elem_type); } else { ir_fprintf(f, "0"); } |