Skip to content

Commit afe05e9

Browse files
committed
SILGen: Add missing call to collectExistentialConformances()
1 parent b333fb1 commit afe05e9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/SILGen/SILGenConvert.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,9 +833,12 @@ ManagedValue SILGenFunction::emitExistentialErasure(
833833
[&, concreteFormalType, F](SGFContext C) -> ManagedValue {
834834
auto concreteValue = F(SGFContext());
835835
assert(concreteFormalType->isBridgeableObjectType());
836+
auto *M = SGM.M.getSwiftModule();
837+
auto conformances = M->collectExistentialConformances(
838+
concreteFormalType, anyObjectTy);
836839
return B.createInitExistentialRef(
837840
loc, SILType::getPrimitiveObjectType(anyObjectTy), concreteFormalType,
838-
concreteValue, {});
841+
concreteValue, conformances);
839842
};
840843

841844
if (this->F.getLoweredFunctionType()->isPseudogeneric()) {

0 commit comments

Comments
 (0)