Skip to content

Commit 891594a

Browse files
committed
SILGen: Fix forcing of base conformance in SILGenConformance
1 parent 8a74e52 commit 891594a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/SILGen/SILGenType.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -454,11 +454,7 @@ class SILGenConformance : public SILGenWitnessTable<SILGenConformance> {
454454
});
455455

456456
// Emit the witness table for the base conformance if it is shared.
457-
auto *normal = conformance->getRootNormalConformance();
458-
459-
if (getLinkageForProtocolConformance(normal, NotForDefinition)
460-
== SILLinkage::Shared)
461-
SGM.getWitnessTable(normal);
457+
SGM.useConformance(ProtocolConformanceRef(conformance));
462458
}
463459

464460
Witness getWitness(ValueDecl *decl) {

0 commit comments

Comments
 (0)