aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-01-17 23:30:38 +0000
committergingerBill <bill@gingerbill.org>2020-01-17 23:30:38 +0000
commit7f89f6b582b138f9809d80f7ed133d72c248f56d (patch)
tree1a796da5ea2d4dc34351ec4045011a71ab699830 /src/ir.cpp
parent159150c6d9a7d421c0d58bd582847104799606d4 (diff)
Add intrinsics.type_is_specialization_of
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp2
1 files changed, 1 insertions, 1 deletions
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<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));