We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1bb5ad commit 4a0f9caCopy full SHA for 4a0f9ca
lib/SILGen/SILGenType.cpp
@@ -1115,6 +1115,14 @@ class SILGenType : public TypeMemberVisitor<SILGenType> {
1115
if (auto *normal = dyn_cast<NormalProtocolConformance>(conformance))
1116
SGM.getWitnessTable(normal);
1117
}
1118
+
1119
+ // Emit `init(for:storage)` initializer as it would be used
1120
+ // by DI and IRGen later on.
1121
+ if (auto typeWrapperInfo = theType->getTypeWrapper()) {
1122
+ auto *ctor = typeWrapperInfo->Wrapper->getTypeWrapperInitializer();
1123
+ assert(ctor);
1124
+ (void)SGM.getFunction(SILDeclRef(ctor), NotForDefinition);
1125
+ }
1126
1127
1128
//===--------------------------------------------------------------------===//
0 commit comments