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 5729d2f + 0f1439c commit 30491e6Copy full SHA for 30491e6
stdlib/public/runtime/Metadata.cpp
@@ -4536,8 +4536,8 @@ WitnessTableCacheEntry::allocate(
4536
// Find the allocation.
4537
void **fullTable = reinterpret_cast<void**>(this + 1);
4538
4539
- // Zero out the private storage area.
4540
- memset(fullTable, 0, privateSizeInWords * sizeof(void*));
+ // Zero out the witness table.
+ memset(fullTable, 0, getWitnessTableSize(conformance));
4541
4542
// Advance the address point; the private storage area is accessed via
4543
// negative offsets.
0 commit comments