mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-14 07:29:02 +03:00
Remove needless hole translation
This commit is contained in:
parent
52c858dc53
commit
5cfbc49ebf
@ -4116,13 +4116,7 @@ fn specialize_naked_symbol<'a>(
|
||||
std::vec::Vec::new(),
|
||||
layout_cache,
|
||||
assigned,
|
||||
match hole {
|
||||
Stmt::Jump(id, _) => env
|
||||
.arena
|
||||
.alloc(Stmt::Jump(*id, env.arena.alloc([assigned]))),
|
||||
Stmt::Ret(_) => env.arena.alloc(Stmt::Ret(assigned)),
|
||||
hole => hole,
|
||||
},
|
||||
hole,
|
||||
);
|
||||
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user