mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
refactor
This commit is contained in:
parent
84855dae5e
commit
e80f8a5114
2 changed files with 15 additions and 42 deletions
|
@ -5674,7 +5674,9 @@ fn store_tag_pattern<'a>(
|
|||
) -> StorePattern<'a> {
|
||||
use Pattern::*;
|
||||
|
||||
let write_tag = union_layout.stores_tag();
|
||||
// rosetree-like structures don't store the tag ID, the others do from the perspective of the IR
|
||||
// The backend can make different choices there (and will, for UnionLayout::NullableUnwrapped)
|
||||
let write_tag = !matches!(union_layout, UnionLayout::NonNullableUnwrapped(_));
|
||||
|
||||
let mut arg_layouts = Vec::with_capacity_in(arguments.len(), env.arena);
|
||||
let mut is_productive = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue