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.
2 parents b94d6eb + fdbeb45 commit afed427Copy full SHA for afed427
lib/SIL/IR/Linker.cpp
@@ -259,6 +259,10 @@ void SILLinkerVisitor::visitProtocolConformance(ProtocolConformanceRef ref) {
259
if ((!WT || WT->isDeclaration()) &&
260
(mustDeserialize || Mode == SILModule::LinkingMode::LinkAll)) {
261
if (!WT) {
262
+ // Marker protocols should never have witness tables.
263
+ if (C->getProtocol()->isMarkerProtocol())
264
+ return;
265
+
266
RootProtocolConformance *rootC = C->getRootConformance();
267
SILLinkage linkage = getLinkageForProtocolConformance(rootC, NotForDefinition);
268
WT = SILWitnessTable::create(Mod, linkage,
0 commit comments