Skip to content

Commit 39462d4

Browse files
authored
Clean up a couple more TODO...GetNodeId (#3781)
Added by #3776 which was why it wasn't covered by #3779
1 parent 295c8eb commit 39462d4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

toolchain/check/member_access.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,17 +168,15 @@ static auto PerformImplLookup(Context& context, SemIR::ConstantId type_const_id,
168168
auto const_id = context.constant_values().Get(member_id);
169169
if (!const_id.is_constant()) {
170170
if (const_id != SemIR::ConstantId::Error) {
171-
context.TODO(context.insts().GetNodeId(member_id),
172-
"non-constant associated entity");
171+
context.TODO(member_id, "non-constant associated entity");
173172
}
174173
return SemIR::InstId::BuiltinError;
175174
}
176175

177176
auto assoc_entity =
178177
context.insts().TryGetAs<SemIR::AssociatedEntity>(const_id.inst_id());
179178
if (!assoc_entity) {
180-
context.TODO(context.insts().GetNodeId(member_id),
181-
"unexpected value for associated entity");
179+
context.TODO(member_id, "unexpected value for associated entity");
182180
return SemIR::InstId::BuiltinError;
183181
}
184182

0 commit comments

Comments
 (0)