Simplify construction of RocReturn

This commit is contained in:
Ayaz Hafiz 2023-06-12 16:48:18 -05:00
parent 9bf5f250f6
commit 8070736cc7
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 10 additions and 35 deletions

View file

@ -1304,7 +1304,7 @@ pub(crate) fn run_low_level<'a, 'ctx>(
BasicValueEnum::IntValue(refcount_ptr.is_1(env))
}
Unreachable => match RocReturn::from_layout(env, layout_interner, layout) {
Unreachable => match RocReturn::from_layout(layout_interner, layout) {
RocReturn::Return => {
let basic_type = basic_type_from_layout(env, layout_interner, layout);
basic_type.const_zero()