mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
get rid of Wrapped
This commit is contained in:
parent
205b168f16
commit
f3b23a6a54
6 changed files with 44 additions and 135 deletions
|
@ -875,20 +875,10 @@ fn expr_spec(
|
|||
}
|
||||
},
|
||||
StructAtIndex {
|
||||
index,
|
||||
field_layouts: _,
|
||||
structure,
|
||||
wrapped,
|
||||
index, structure, ..
|
||||
} => {
|
||||
use crate::ir::Wrapped;
|
||||
|
||||
let value_id = env.symbols[structure];
|
||||
|
||||
match wrapped {
|
||||
Wrapped::RecordOrSingleTagUnion => {
|
||||
builder.add_get_tuple_field(block, value_id, *index as u32)
|
||||
}
|
||||
}
|
||||
builder.add_get_tuple_field(block, value_id, *index as u32)
|
||||
}
|
||||
Array { elem_layout, elems } => {
|
||||
let type_id = layout_spec(builder, elem_layout)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue