get rid of Wrapped

This commit is contained in:
Folkert 2021-06-21 23:10:56 +02:00
parent 205b168f16
commit f3b23a6a54
6 changed files with 44 additions and 135 deletions

View file

@ -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)?;