Few more places in codegen where we need to be able to deal with Pair records

This commit is contained in:
microproofs
2024-03-29 16:05:16 -04:00
committed by Kasey
parent 26f68c2fb4
commit 3c332ca42a
3 changed files with 347 additions and 69 deletions

View File

@@ -937,7 +937,7 @@ impl AirTree {
}
}
pub fn pair_index(index: usize, tipo: Rc<Type>, tuple: AirTree) -> AirTree {
pub fn pair_index(index: u64, tipo: Rc<Type>, tuple: AirTree) -> AirTree {
AirTree::cast_from_data(
AirTree::builtin(
if index == 0 {