mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix crash on aliasing compiler-only packages (e.g. intrinsics) with _ at the global scope.
This commit is contained in:
@@ -335,6 +335,9 @@ void override_entity_in_scope(Entity *original_entity, Entity *new_entity) {
|
|||||||
Scope *found_scope = nullptr;
|
Scope *found_scope = nullptr;
|
||||||
Entity *found_entity = nullptr;
|
Entity *found_entity = nullptr;
|
||||||
scope_lookup_parent(original_entity->scope, original_name, &found_scope, &found_entity);
|
scope_lookup_parent(original_entity->scope, original_name, &found_scope, &found_entity);
|
||||||
|
if (found_scope == nullptr) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// IMPORTANT TODO(bill)
|
// IMPORTANT TODO(bill)
|
||||||
// Date: 2018-09-29
|
// Date: 2018-09-29
|
||||||
|
|||||||
Reference in New Issue
Block a user