Skip to content

Commit 6ebd992

Browse files
committed
Runtime: Clarify meaning of a flag bit in GenericWitnessTable
1 parent bdac8ad commit 6ebd992

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/swift/ABI/Metadata.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2039,7 +2039,8 @@ struct TargetGenericWitnessTable {
20392039
return WitnessTablePrivateSizeInWordsAndRequiresInstantiation >> 1;
20402040
}
20412041

2042-
/// Whether the witness table is known to require instantiation.
2042+
/// This bit doesn't really mean anything. Currently, the compiler always
2043+
/// sets it when emitting a generic witness table.
20432044
uint16_t requiresInstantiation() const {
20442045
return WitnessTablePrivateSizeInWordsAndRequiresInstantiation & 0x01;
20452046
}

0 commit comments

Comments
 (0)