Skip to content

Commit 580d501

Browse files
authored
Merge pull request swiftlang#66027 from slavapestov/fix-compatibility-packs-shim
Fix assert build of CompatibilityPacks shim
2 parents 222946b + 9c19563 commit 580d501

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

stdlib/toolchain/CompatibilityPacks/Metadata.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ swift_allocateMetadataPack(const Metadata * const *ptr, size_t count) {
140140
auto bytes = MetadataPacks.getOrInsert(key).first->getElements();
141141

142142
MetadataPackPointer pack(bytes, PackLifetime::OnHeap);
143-
assert(pack.getNumElements() == count);
144143
return pack.getPointer();
145144
}
146145

@@ -159,6 +158,5 @@ swift_allocateWitnessTablePack(const WitnessTable * const *ptr, size_t count) {
159158
auto bytes = WitnessTablePacks.getOrInsert(key).first->getElements();
160159

161160
WitnessTablePackPointer pack(bytes, PackLifetime::OnHeap);
162-
assert(pack.getNumElements() == count);
163161
return pack.getPointer();
164162
}

0 commit comments

Comments
 (0)