rename to GetElementPointer, index -> indices

This commit is contained in:
HajagosNorbert 2023-11-13 15:45:38 +01:00
parent 90223022af
commit 9c21ac1388
No known key found for this signature in database
GPG key ID: 807F4444870DB673
12 changed files with 49 additions and 49 deletions

View file

@ -2003,15 +2003,15 @@ pub(crate) fn build_exp_expr<'a, 'ctx>(
}
}
UnionFieldPtrAtIndex {
GetElementPointer {
structure,
index,
indices,
union_layout,
..
} => {
debug_assert!(index.len() >= 2);
let tag_id = index[0];
let index = index[1] as usize;
debug_assert!(indices.len() >= 2);
let tag_id = indices[0];
let index = indices[1] as usize;
// cast the argument bytes into the desired shape for this tag
let argument = scope.load_symbol(structure);
let ret_repr = layout_interner.get_repr(layout);