Move redundant auto_cast error from -vet to -vet-extra

This commit is contained in:
gingerBill
2021-09-28 12:24:51 +01:00
parent ea0bf05727
commit 6f872e04c8
3 changed files with 14 additions and 3 deletions

View File

@@ -1204,6 +1204,17 @@ lbValue lb_emit_conv(lbProcedure *p, lbValue value, Type *t) {
}
return lb_emit_conv(p, res, t);
}
if (is_type_integer_128bit(dst)) {
auto args = array_make<lbValue>(temporary_allocator(), 1);
args[0] = value;
char const *call = "fixunsdfdi";
if (is_type_unsigned(dst)) {
call = "fixunsdfti";
}
lbValue res_i128 = lb_emit_runtime_call(p, call, args);
return lb_emit_conv(p, res_i128, t);
}
lbValue res = {};
res.type = t;