mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 21:41:27 +01:00
Mark Check::Context::insts() as const and use it in more use cases (#6093)
This commit is contained in:
@@ -599,8 +599,7 @@ static auto IsDeclInjectedClassName(const Context& context,
|
||||
CARBON_CHECK(ast_context.getCanonicalTagType(scope_record_decl) ==
|
||||
ast_context.getCanonicalTagType(record_decl));
|
||||
|
||||
auto class_decl =
|
||||
context.sem_ir().insts().GetAs<SemIR::ClassDecl>(clang_decl.inst_id);
|
||||
auto class_decl = context.insts().GetAs<SemIR::ClassDecl>(clang_decl.inst_id);
|
||||
CARBON_CHECK(name_id ==
|
||||
context.sem_ir().classes().Get(class_decl.class_id).name_id);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user