inline lowlevel in rc

This commit is contained in:
J.Teeuwissen 2023-04-13 12:26:05 +02:00
parent bcb494ca6a
commit 5f7f9b766b
No known key found for this signature in database
GPG key ID: DB5F7A1ED8D478AD
80 changed files with 496 additions and 436 deletions

View file

@ -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.