mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 10:51:06 +01:00
Fix impl lookup to properly look in the IR containing a transitively-imported entity. (#4625)
This commit is contained in:
@@ -131,8 +131,7 @@ static auto TryMergeRedecl(Context& context, Parse::AnyFunctionDeclId node_id,
|
||||
break;
|
||||
}
|
||||
case SemIR::ImportRefLoaded::Kind: {
|
||||
auto import_ir_inst =
|
||||
GetCanonicalImportIRInst(context, &context.sem_ir(), prev_id);
|
||||
auto import_ir_inst = GetCanonicalImportIRInst(context, prev_id);
|
||||
|
||||
// Verify the decl so that things like aliases are name conflicts.
|
||||
const auto* import_ir =
|
||||
|
||||
Reference in New Issue
Block a user