mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
tweaks
This commit is contained in:
parent
59e551dd32
commit
d0be0df83c
3 changed files with 5 additions and 9 deletions
|
@ -2827,7 +2827,7 @@ fn build_switch_ir<'a, 'ctx, 'env>(
|
|||
.into_int_value()
|
||||
}
|
||||
Layout::Union(variant) => {
|
||||
cond_layout = Layout::Builtin(Builtin::Int64);
|
||||
cond_layout = variant.tag_id_layout();
|
||||
|
||||
get_tag_id(env, parent, &variant, cond_value)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue