Add intrinsics.type_is_specialization_of

This commit is contained in:
gingerBill
2020-01-17 23:30:38 +00:00
parent 159150c6d9
commit 7f89f6b582
4 changed files with 37 additions and 1 deletions
+1 -1
View File
@@ -3172,7 +3172,7 @@ irValue *ir_emit_call(irProcedure *p, irValue *value, Array<irValue *> const &ar
} else if (!is_type_pointer(arg_type)) {
array_add(&processed_args, ir_copy_value_to_ptr(p, args[i], original_type, 16));
}
} else if (is_type_integer(new_type)) {
} else if (is_type_integer(new_type) || is_type_float(new_type)) {
array_add(&processed_args, ir_emit_transmute(p, args[i], new_type));
} else if (new_type == t_llvm_bool) {
array_add(&processed_args, ir_emit_conv(p, args[i], new_type));