[SR-247] SILParser needs to parse conformances when parsing init_existential_ref init_existential_metatype_inst #42869
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
good first issue
Good for newcomers
Additional Detail from JIRA
md5: 9e2ce64f706bfd1e60b6deb2974bba58
Issue Description:
Currently we have these two fixes in the SILParser.
// FIXME: Conformances in InitExistentialRefInst is currently not included
// in SIL.rst.
ResultVal = B.createInitExistentialRef(InstLoc, ExistentialTy,
FormalConcreteTy, Val,
conformances);
break;
}
case ValueKind::InitExistentialMetatypeInst: {
SILType ExistentialTy;
if (parseTypedValueRef(Val, B) ||
P.parseToken(tok::comma, diag::expected_tok_in_sil_instr, ",") ||
parseSILType(ExistentialTy))
return true;
// FIXME: We should be parsing conformances here.
ResultVal = B.createInitExistentialMetatype(InstLoc
We need to parse the conformances here and right some test cases. I have run into the first before, but not the second. I think I have a patch that implements one or the other. I will attach it if I can find it.
The text was updated successfully, but these errors were encountered: