From 7f89f6b582b138f9809d80f7ed133d72c248f56d Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 17 Jan 2020 23:30:38 +0000 Subject: Add intrinsics.type_is_specialization_of --- src/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index b23c81e78..5d075d7dd 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -3172,7 +3172,7 @@ irValue *ir_emit_call(irProcedure *p, irValue *value, Array 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)); -- cgit v1.2.3