Skip to content

Commit 6c85fff

Browse files
committed
Serialize witnesses if -sil-serialize-witness-tables is provided
1 parent 692575f commit 6c85fff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/SILGen/SILGenType.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,9 @@ class SILGenConformance : public SILGenWitnessTable<SILGenConformance> {
482482
if (witnessSerialized &&
483483
fixmeWitnessHasLinkageThatNeedsToBePublic(witnessLinkage)) {
484484
witnessLinkage = SILLinkage::Public;
485-
witnessSerialized = IsNotSerialized;
485+
witnessSerialized = (SGM.M.getOptions().SILSerializeWitnessTables
486+
? IsSerialized
487+
: IsNotSerialized);
486488
} else {
487489
// This is the "real" rule; the above case should go away once we
488490
// figure out what's going on.

0 commit comments

Comments
 (0)