Просмотр исходного кода

Clean up a couple more TODO...GetNodeId (#3781)

Added by #3776 which was why it wasn't covered by #3779
Jon Ross-Perkins 2 лет назад
Родитель
Сommit
39462d49b4
1 измененных файлов с 2 добавлено и 4 удалено
  1. 2 4
      toolchain/check/member_access.cpp

+ 2 - 4
toolchain/check/member_access.cpp

@@ -168,8 +168,7 @@ static auto PerformImplLookup(Context& context, SemIR::ConstantId type_const_id,
   auto const_id = context.constant_values().Get(member_id);
   auto const_id = context.constant_values().Get(member_id);
   if (!const_id.is_constant()) {
   if (!const_id.is_constant()) {
     if (const_id != SemIR::ConstantId::Error) {
     if (const_id != SemIR::ConstantId::Error) {
-      context.TODO(context.insts().GetNodeId(member_id),
-                   "non-constant associated entity");
+      context.TODO(member_id, "non-constant associated entity");
     }
     }
     return SemIR::InstId::BuiltinError;
     return SemIR::InstId::BuiltinError;
   }
   }
@@ -177,8 +176,7 @@ static auto PerformImplLookup(Context& context, SemIR::ConstantId type_const_id,
   auto assoc_entity =
   auto assoc_entity =
       context.insts().TryGetAs<SemIR::AssociatedEntity>(const_id.inst_id());
       context.insts().TryGetAs<SemIR::AssociatedEntity>(const_id.inst_id());
   if (!assoc_entity) {
   if (!assoc_entity) {
-    context.TODO(context.insts().GetNodeId(member_id),
-                 "unexpected value for associated entity");
+    context.TODO(member_id, "unexpected value for associated entity");
     return SemIR::InstId::BuiltinError;
     return SemIR::InstId::BuiltinError;
   }
   }