Skip to content

Commit cc32f50

Browse files
committed
[Runtime] Remove duplicate witness checking for now.
It's breaking on SwiftPM, so remove it for now and follow-up to investigate with rdar://problem/44627274.
1 parent 93f9dc8 commit cc32f50

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

stdlib/public/runtime/Metadata.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3663,15 +3663,6 @@ static void initializeResilientWitnessTable(GenericWitnessTable *genericTable,
36633663
unsigned witnessIndex = (reqDescriptor - requirements.data()) +
36643664
WitnessTableFirstRequirementOffset;
36653665

3666-
#if !NDEBUG
3667-
// For debug builds, warn if we already have an entry at this index.
3668-
if (table[witnessIndex]) {
3669-
warning(0, "generic witness table at %p contains duplicate entry for "
3670-
"requirement descriptor %p\n",
3671-
genericTable, reqDescriptor);
3672-
}
3673-
#endif
3674-
36753666
table[witnessIndex] = witness.Witness.get();
36763667
}
36773668

0 commit comments

Comments
 (0)