mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Return a NewAnyPhase result for RequireCompleteType with a CompleteTypeWitness value (#6939)
The `CompleteTypeWitness` can be concrete. This avoids making a symbolic `CompleteTypeWitness` value which itself has a concrete `CompleteTypeWitness` value with the same operands.
This commit is contained in:
@@ -540,7 +540,7 @@ auto EvalConstantInst(Context& context, SemIR::InstId inst_id,
|
||||
true)) {
|
||||
return ConstantEvalResult::Error;
|
||||
}
|
||||
return ConstantEvalResult::NewSamePhase(SemIR::CompleteTypeWitness{
|
||||
return ConstantEvalResult::NewAnyPhase(SemIR::CompleteTypeWitness{
|
||||
.type_id = witness_type_id,
|
||||
.object_repr_type_inst_id = context.types().GetTypeInstId(
|
||||
context.types().GetObjectRepr(complete_type_id))});
|
||||
|
||||
Reference in New Issue
Block a user