add branch on ptr width back

apple arm tests are failing, maybe this will fix it?
This commit is contained in:
shua 2024-06-10 23:12:09 +02:00
parent 18394da2a2
commit a2c800452e
No known key found for this signature in database
GPG key ID: 73387DA37055770F

View file

@ -849,13 +849,22 @@ pub(crate) fn run_low_level<'a, 'ctx>(
// List.concatUtf8: List U8, Str -> List U8
arguments!(list, string);
call_list_bitcode_fn(
env,
&[list.into_struct_value()],
&[string],
BitcodeReturns::List,
bitcode::LIST_CONCAT_UTF8,
)
match env.target.ptr_width() {
PtrWidth::Bytes4 => call_str_bitcode_fn(
env,
&[list, string],
&[],
BitcodeReturns::List,
bitcode::LIST_CONCAT_UTF8,
),
PtrWidth::Bytes8 => call_list_bitcode_fn(
env,
&[list.into_struct_value()],
&[string],
BitcodeReturns::List,
bitcode::LIST_CONCAT_UTF8,
),
}
}
NumToStr => {
// Num.toStr : Num a -> Str