File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1192,6 +1192,10 @@ void SILGenFunction::emitArtificialTopLevel(Decl *mainDecl) {
11921192 CanType anyObjectMetaTy = CanExistentialMetatypeType::get (anyObjectTy,
11931193 MetatypeRepresentation::ObjC);
11941194
1195+ auto conformances =
1196+ SGM.SwiftModule ->collectExistentialConformances (mainClassMetaty,
1197+ anyObjectMetaTy);
1198+
11951199 auto paramConvention = ParameterConvention::Direct_Unowned;
11961200 auto params = {SILParameterInfo (anyObjectMetaTy, paramConvention)};
11971201 std::array<SILResultInfo, 1 > resultInfos = {
@@ -1218,7 +1222,7 @@ void SILGenFunction::emitArtificialTopLevel(Decl *mainDecl) {
12181222 SILType::getPrimitiveObjectType (mainClassMetaty));
12191223 metaTy = B.createInitExistentialMetatype (mainClass, metaTy,
12201224 SILType::getPrimitiveObjectType (anyObjectMetaTy),
1221- {} );
1225+ conformances );
12221226 SILValue optNameValue = B.createApply (
12231227 mainClass, NSStringFromClass, {}, metaTy);
12241228 ManagedValue optName = emitManagedRValueWithCleanup (optNameValue);
You can’t perform that action at this time.
0 commit comments