mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-12 23:06:18 +00:00
add branch on ptr width back
apple arm tests are failing, maybe this will fix it?
This commit is contained in:
parent
18394da2a2
commit
a2c800452e
1 changed files with 16 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue