Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stdlib/public/runtime/Metadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4537,8 +4537,8 @@ WitnessTableCacheEntry::allocate(
// Find the allocation.
void **fullTable = reinterpret_cast<void**>(this + 1);

// Zero out the private storage area.
memset(fullTable, 0, privateSizeInWords * sizeof(void*));
// Zero out the witness table.
memset(fullTable, 0, getWitnessTableSize(conformance));

// Advance the address point; the private storage area is accessed via
// negative offsets.
Expand Down