Fix crash on aliasing compiler-only packages (e.g. intrinsics) with _ at the global scope.

This commit is contained in:
gingerBill
2020-04-04 19:45:54 +01:00
parent 3f638f92e2
commit b54b5aabac
+3
View File
@@ -335,6 +335,9 @@ void override_entity_in_scope(Entity *original_entity, Entity *new_entity) {
Scope *found_scope = nullptr;
Entity *found_entity = nullptr;
scope_lookup_parent(original_entity->scope, original_name, &found_scope, &found_entity);
if (found_scope == nullptr) {
return;
}
// IMPORTANT TODO(bill)
// Date: 2018-09-29