mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 18:20:29 +00:00
Remove the SemIRLoc typedef (#5299)
Replace SemIRLoc typedef uses with explicitly SemIR::LocId, loc -> loc_id for consistency.
This commit is contained in:
1 parent
77cbcd0aa8
commit
55da026a46
27 files changed
+253
-236
No files matched your search
@@ -608,7 +608,7 @@ static auto AddNamespaceFromOtherPackage(Context& context,
|
||||
}
|
||||
|
||||
auto ImportNameFromOtherPackage(
|
||||
Context& context, SemIRLoc loc, SemIR::NameScopeId scope_id,
|
||||
Context& context, SemIR::LocId loc_id, SemIR::NameScopeId scope_id,
|
||||
llvm::ArrayRef<std::pair<SemIR::ImportIRId, SemIR::NameScopeId>>
|
||||
import_ir_scopes,
|
||||
SemIR::NameId name_id) -> SemIR::InstId {
|
||||
@@ -626,7 +626,7 @@ auto ImportNameFromOtherPackage(
|
||||
&context.emitter(), [&](auto& builder) {
|
||||
CARBON_DIAGNOSTIC(InNameLookup, Note, "in name lookup for `{0}`",
|
||||
SemIR::NameId);
|
||||
builder.Note(loc, InNameLookup, name_id);
|
||||
builder.Note(loc_id, InNameLookup, name_id);
|
||||
});
|
||||
|
||||
// Although we track the result here and look in each IR, we pretty much use
|
||||
|
||||
Reference in new issue
Block a user