Fix trailing default argument checking

This commit is contained in:
Ginger Bill
2017-06-11 20:52:54 +01:00
parent 2d73c8868b
commit c2c935ba81
4 changed files with 57 additions and 31 deletions
+1 -1
View File
@@ -2731,7 +2731,7 @@ irValue *ir_emit_conv(irProcedure *proc, irValue *value, Type *t) {
ev = exact_value_to_complex(ev);
} else if (is_type_string(dst)) {
// Handled elsewhere
GB_ASSERT(ev.kind == ExactValue_String);
GB_ASSERT_MSG(ev.kind == ExactValue_String, "%d", ev.kind);
} else if (is_type_integer(dst)) {
ev = exact_value_to_integer(ev);
} else if (is_type_pointer(dst)) {