mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
clippy
This commit is contained in:
parent
51f3752c94
commit
052ce8f2aa
8 changed files with 114 additions and 18 deletions
|
@ -803,7 +803,7 @@ trait Backend<'a> {
|
|||
union_layout,
|
||||
index,
|
||||
} => {
|
||||
todo!();
|
||||
self.load_union_field_ptr_at_index(sym, structure, *tag_id, *index, union_layout);
|
||||
}
|
||||
Expr::GetTagId {
|
||||
structure,
|
||||
|
@ -2331,6 +2331,16 @@ trait Backend<'a> {
|
|||
union_layout: &UnionLayout<'a>,
|
||||
);
|
||||
|
||||
/// load_union_at_index loads into `sym` the value at `index` for `tag_id`.
|
||||
fn load_union_field_ptr_at_index(
|
||||
&mut self,
|
||||
sym: &Symbol,
|
||||
structure: &Symbol,
|
||||
tag_id: TagIdIntType,
|
||||
index: u64,
|
||||
union_layout: &UnionLayout<'a>,
|
||||
);
|
||||
|
||||
/// get_tag_id loads the tag id from a the union.
|
||||
fn get_tag_id(&mut self, sym: &Symbol, structure: &Symbol, union_layout: &UnionLayout<'a>);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue