mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
inline lowlevel in rc
This commit is contained in:
parent
bcb494ca6a
commit
5f7f9b766b
80 changed files with 496 additions and 436 deletions
|
@ -319,16 +319,10 @@ trait Backend<'a> {
|
|||
ret_layout,
|
||||
..
|
||||
} => {
|
||||
if let LowLevelWrapperType::CanBeReplacedBy(lowlevel) =
|
||||
if let LowLevelWrapperType::CanBeReplacedBy(_) =
|
||||
LowLevelWrapperType::from_symbol(func_sym.name())
|
||||
{
|
||||
return self.build_run_low_level(
|
||||
sym,
|
||||
&lowlevel,
|
||||
arguments,
|
||||
arg_layouts,
|
||||
ret_layout,
|
||||
);
|
||||
unreachable!("LowLevelWrapperType::CanBeReplacedBy should have been replaced by now, in the inc_dec reference counting file.");
|
||||
} else if sym.is_builtin() {
|
||||
// These builtins can be built through `build_fn_call` as well, but the
|
||||
// implementation in `build_builtin` inlines some of the symbols.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue