We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 16c9c00 + 7d7a35e commit 26f7823Copy full SHA for 26f7823
stdlib/public/runtime/Metadata.cpp
@@ -4537,8 +4537,8 @@ WitnessTableCacheEntry::allocate(
4537
// Find the allocation.
4538
void **fullTable = reinterpret_cast<void**>(this + 1);
4539
4540
- // Zero out the private storage area.
4541
- memset(fullTable, 0, privateSizeInWords * sizeof(void*));
+ // Zero out the witness table.
+ memset(fullTable, 0, getWitnessTableSize(conformance));
4542
4543
// Advance the address point; the private storage area is accessed via
4544
// negative offsets.
0 commit comments