mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Simplify construction of RocReturn
This commit is contained in:
parent
9bf5f250f6
commit
8070736cc7
2 changed files with 10 additions and 35 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue