mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
undid inlining
This commit is contained in:
parent
3c5a978bbe
commit
9d4c3bcfb9
5 changed files with 61 additions and 100 deletions
|
@ -319,10 +319,16 @@ trait Backend<'a> {
|
|||
ret_layout,
|
||||
..
|
||||
} => {
|
||||
if let LowLevelWrapperType::CanBeReplacedBy(_) =
|
||||
if let LowLevelWrapperType::CanBeReplacedBy(lowlevel) =
|
||||
LowLevelWrapperType::from_symbol(func_sym.name())
|
||||
{
|
||||
unreachable!("LowLevelWrapperType::CanBeReplacedBy should have been replaced by now, in the inc_dec reference counting file.");
|
||||
return self.build_run_low_level(
|
||||
sym,
|
||||
&lowlevel,
|
||||
arguments,
|
||||
arg_layouts,
|
||||
ret_layout,
|
||||
);
|
||||
} 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