Skip to content

Commit aa0095c

Browse files
authored
Remove TODO in GetConstantValue for FacetTypeId (#6089)
The FacetTypeId comes from a CanonicalValueStore, so the value is hashed, and if it's the same, the same id will be returned from Add().
1 parent bff0e59 commit aa0095c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

toolchain/check/eval.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,6 @@ static auto GetConstantValue(EvalContext& eval_context,
674674
SemIR::FacetTypeInfo info = GetConstantFacetTypeInfo(
675675
eval_context, SemIR::LocId::None,
676676
eval_context.facet_types().Get(facet_type_id), phase);
677-
// TODO: Return `facet_type_id` if we can detect nothing has changed.
678677
return eval_context.facet_types().Add(info);
679678
}
680679

0 commit comments

Comments
 (0)