remove usize llvm gen

This commit is contained in:
Folkert 2021-11-21 13:24:53 +01:00
parent 2033f1f430
commit 7d231f87cd
4 changed files with 8 additions and 38 deletions

View file

@ -289,7 +289,7 @@ pub fn str_from_int<'a, 'ctx, 'env>(
match int_layout {
Layout::Builtin(builtin) => match builtin {
Builtin::Usize | Builtin::Int(_) => {
Builtin::Int(_) => {
let intwidth = intwidth_from_builtin(*builtin, env.ptr_bytes);
call_bitcode_fn(env, &[int], &bitcode::STR_FROM_INT[intwidth])
}