mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-08 04:50:32 +00:00
Remove Str.fromUtf8Range
Seamless slices make this obsolete!
This commit is contained in:
parent
74e58d3d51
commit
37b154df4f
15 changed files with 94 additions and 219 deletions
|
@ -1623,15 +1623,17 @@ trait Backend<'a> {
|
|||
arg_layouts,
|
||||
ret_layout,
|
||||
),
|
||||
LowLevel::StrFromUtf8Range => {
|
||||
LowLevel::StrFromUtf8 => {
|
||||
let update_mode = self.debug_symbol("update_mode");
|
||||
|
||||
// In dev builds, always use UpdateMode::Immutable
|
||||
self.load_literal_i8(&update_mode, UpdateMode::Immutable as i8);
|
||||
|
||||
self.build_fn_call(
|
||||
sym,
|
||||
bitcode::STR_FROM_UTF8_RANGE.to_string(),
|
||||
&[args[0], args[1], args[2], update_mode],
|
||||
&[arg_layouts[0], arg_layouts[1], arg_layouts[2], Layout::U8],
|
||||
bitcode::STR_FROM_UTF8.to_string(),
|
||||
&[args[0], update_mode],
|
||||
&[arg_layouts[0], Layout::U8],
|
||||
ret_layout,
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue