mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Add to check to fix crash
This commit is contained in:
@@ -449,8 +449,9 @@ gb_internal void write_canonical_entity_name(TypeWriter *w, Entity *e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (e->scope->flags & (ScopeFlag_Builtin)) {
|
if (e->scope->flags & (ScopeFlag_Builtin)) {
|
||||||
// ignore
|
goto write_base_name;
|
||||||
} else if ((e->scope->flags & (ScopeFlag_File | ScopeFlag_Pkg)) == 0) {
|
} else if ((e->scope->flags & (ScopeFlag_File | ScopeFlag_Pkg)) == 0 ||
|
||||||
|
e->flags & EntityFlag_NotExported) {
|
||||||
Scope *s = e->scope;
|
Scope *s = e->scope;
|
||||||
|
|
||||||
while ((s->flags & (ScopeFlag_Proc|ScopeFlag_File)) == 0 && s->decl_info == nullptr) {
|
while ((s->flags & (ScopeFlag_Proc|ScopeFlag_File)) == 0 && s->decl_info == nullptr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user