Skip to content

Commit

Permalink
how to resolve tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
JCBurnside committed Mar 18, 2024
1 parent b71705c commit 2a4d74e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions llvm-codegen/src/type_resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ impl<'ctx> TypeResolver<'ctx> {
.as_any_type_enum(),
);
}
ResolvedType::Tuple { underlining, loc:_ } => {
let inners = underlining.iter().map(|ty| self.resolve_type_as_basic(ty.clone())).collect_vec();
let strct = self.ctx.struct_type(&inners,false);
self.known.insert(
ty,
strct.into()
);
}
ResolvedType::Function { .. } => {
let r = self
.ctx
Expand Down

0 comments on commit 2a4d74e

Please sign in to comment.