mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Fix debug info issue
This commit is contained in:
+3
-2
@@ -2270,7 +2270,8 @@ irDebugInfo *ir_add_debug_info_type(irModule *module, Type *type, Entity *e, irD
|
|||||||
return di;
|
return di;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_type_struct(type) || is_type_union(type) || is_type_enum(type) || is_type_tuple(type)) {
|
if (is_type_struct(type) ||
|
||||||
|
is_type_union(type) || is_type_enum(type) || is_type_tuple(type)) {
|
||||||
if (type->kind == Type_Named) {
|
if (type->kind == Type_Named) {
|
||||||
// NOTE(lachsinc): Named named's should always be handled prior as typedefs.
|
// NOTE(lachsinc): Named named's should always be handled prior as typedefs.
|
||||||
GB_ASSERT(type->Named.base->kind != Type_Named);
|
GB_ASSERT(type->Named.base->kind != Type_Named);
|
||||||
@@ -2450,7 +2451,7 @@ irDebugInfo *ir_add_debug_info_type(irModule *module, Type *type, Entity *e, irD
|
|||||||
return ir_add_debug_info_type_bit_set(module, type, e, scope);
|
return ir_add_debug_info_type_bit_set(module, type, e, scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
GB_PANIC("Unreachable");
|
GB_PANIC("Unreachable %s", type_to_string(type));
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -912,7 +912,7 @@ Type *base_complex_elem_type(Type *t) {
|
|||||||
|
|
||||||
bool is_type_struct(Type *t) {
|
bool is_type_struct(Type *t) {
|
||||||
t = base_type(t);
|
t = base_type(t);
|
||||||
return (t->kind == Type_Struct && !t->Struct.is_raw_union);
|
return t->kind == Type_Struct;
|
||||||
}
|
}
|
||||||
bool is_type_union(Type *t) {
|
bool is_type_union(Type *t) {
|
||||||
t = base_type(t);
|
t = base_type(t);
|
||||||
|
|||||||
Reference in New Issue
Block a user