Remove needless hole translation

This commit is contained in:
Ayaz Hafiz 2022-12-02 12:21:44 -06:00
parent 52c858dc53
commit 5cfbc49ebf
No known key found for this signature in database
GPG Key ID: 0E2A37416A25EF58

View File

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