diff options
| author | gingerBill <bill@gingerbill.org> | 2023-07-22 12:21:29 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-07-22 12:21:29 +0100 |
| commit | d82c2ce50ff37ca624d32208f2e0249966b5542d (patch) | |
| tree | de319cc8ccbc73577e904f98c4b815541622ae8b /src/tilde_debug.cpp | |
| parent | 6c12156b1a47cb3c39e5c12d443e482af2a218bb (diff) | |
Update Tilde; Add `min` and `max`
Diffstat (limited to 'src/tilde_debug.cpp')
| -rw-r--r-- | src/tilde_debug.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tilde_debug.cpp b/src/tilde_debug.cpp index e3b45ff1b..21594ef07 100644 --- a/src/tilde_debug.cpp +++ b/src/tilde_debug.cpp @@ -1,5 +1,7 @@ gb_internal TB_DebugType *cg_debug_type_internal(cgModule *m, Type *type); gb_internal TB_DebugType *cg_debug_type(cgModule *m, Type *type) { + type = reduce_tuple_to_single_type(type); + mutex_lock(&m->debug_type_mutex); defer (mutex_unlock(&m->debug_type_mutex)); TB_DebugType **found = map_get(&m->debug_type_map, type); @@ -235,7 +237,8 @@ gb_internal TB_DebugType *cg_debug_type_internal(cgModule *m, Type *type) { case Basic_uint: return tb_debug_get_integer(m->mod, is_signed, bits); case Basic_uintptr: return tb_debug_get_integer(m->mod, is_signed, bits); - case Basic_rawptr: return tb_debug_create_ptr(m->mod, tb_debug_get_void(m->mod)); + case Basic_rawptr: + return tb_debug_create_ptr(m->mod, tb_debug_get_void(m->mod)); case Basic_string: { String name = basic_types[type->Basic.kind].Basic.name; |