mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Treat Type_Tuple closer to a Type_Struct in lb_type
This commit is contained in:
@@ -1744,6 +1744,9 @@ LLVMTypeRef lb_type_internal(lbModule *m, Type *type) {
|
|||||||
if (type->Tuple.variables.count == 1) {
|
if (type->Tuple.variables.count == 1) {
|
||||||
return lb_type(m, type->Tuple.variables[0]->type);
|
return lb_type(m, type->Tuple.variables[0]->type);
|
||||||
} else {
|
} else {
|
||||||
|
m->internal_type_level += 1;
|
||||||
|
defer (m->internal_type_level -= 1);
|
||||||
|
|
||||||
unsigned field_count = cast(unsigned)(type->Tuple.variables.count);
|
unsigned field_count = cast(unsigned)(type->Tuple.variables.count);
|
||||||
LLVMTypeRef *fields = gb_alloc_array(temporary_allocator(), LLVMTypeRef, field_count);
|
LLVMTypeRef *fields = gb_alloc_array(temporary_allocator(), LLVMTypeRef, field_count);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user