mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Fix a crash when Core is poisoned (#5838)
There are probably other ways to reproduce this, but this is roughly how I ran into it.
This commit is contained in:
@@ -648,7 +648,7 @@ auto ImportNameFromOtherPackage(
|
||||
|
||||
const auto* import_scope_entry = LookupNameInImport(
|
||||
*import_ir.sem_ir, import_scope_id, name_id, identifier);
|
||||
if (!import_scope_entry) {
|
||||
if (!import_scope_entry || !import_scope_entry->result.is_found()) {
|
||||
continue;
|
||||
}
|
||||
SemIR::InstId import_scope_inst_id =
|
||||
|
||||
Reference in New Issue
Block a user