Skip to content

Commit e3f5829

Browse files
committed
Fix a bug in serialization of witness methods
1 parent 930b60a commit e3f5829

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/SILGen/SILGenType.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,7 @@ class SILGenConformance : public SILGenWitnessTable<SILGenConformance> {
477477
if (witnessSerialized &&
478478
fixmeWitnessHasLinkageThatNeedsToBePublic(witnessLinkage)) {
479479
witnessLinkage = SILLinkage::Public;
480-
witnessSerialized =
481-
(SGM.M.getASTContext().LangOpts.SILSerializeWitnessTables
482-
? IsSerialized
483-
: IsNotSerialized);
480+
witnessSerialized = IsNotSerialized;
484481
} else {
485482
// This is the "real" rule; the above case should go away once we
486483
// figure out what's going on.

0 commit comments

Comments
 (0)