mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 20:11:12 +01:00
Replace GetTypeInSpecific with GetTypeOfInstInSpecific. (#5232)
Reduce usage of `GetConstantInSpecific` to a single caller in constant evaluation, with a TODO to remove that. This gets us closer to being able to fully perform type-checking against abstract types instead of types anchored within a particular generic.
This commit is contained in:
@@ -243,7 +243,7 @@ auto EvalConstantInst(Context& context, SemIRLoc loc,
|
||||
|
||||
auto EvalConstantInst(Context& context, SemIRLoc loc,
|
||||
SemIR::ImplWitnessAccess inst) -> ConstantEvalResult {
|
||||
// This is PerformAggregateAccess followed by GetConstantInSpecific.
|
||||
// This is PerformAggregateAccess followed by GetConstantValueInSpecific.
|
||||
if (auto witness =
|
||||
context.insts().TryGetAs<SemIR::ImplWitness>(inst.witness_id)) {
|
||||
auto elements = context.inst_blocks().Get(witness->elements_id);
|
||||
|
||||
Reference in New Issue
Block a user