@@ -389,7 +389,7 @@ class alignas(sequesteredArenaAllocatorAlignment) SequesteredArenaAllocator {
389389
390390 auto oldDebugKey = reinterpret_cast <uintptr_t >(p);
391391 auto newDebugKey = reinterpret_cast <uintptr_t >(newP);
392- RELEASE_ASSERT (m_allocationInfos.count (oldDebugKey) > 0 );
392+ RELEASE_ASSERT (m_allocationInfos.contains (oldDebugKey));
393393 m_allocationInfos[newDebugKey] = m_allocationInfos[oldDebugKey];
394394
395395 return reallocateInto (p, newP, newSize);
@@ -487,7 +487,7 @@ class alignas(sequesteredArenaAllocatorAlignment) SequesteredArenaAllocator {
487487
488488 if constexpr (trackAllocationDebugInfo) {
489489 auto debugKey = reinterpret_cast <uintptr_t >(p);
490- RELEASE_ASSERT (m_allocationInfos.count (debugKey) > 0 );
490+ RELEASE_ASSERT (m_allocationInfos.contains (debugKey));
491491 m_allocationInfos[debugKey].live = false ;
492492 m_allocationInfos.erase (debugKey);
493493 }
@@ -498,7 +498,7 @@ class alignas(sequesteredArenaAllocatorAlignment) SequesteredArenaAllocator {
498498 if constexpr (trackAllocationDebugInfo) {
499499 auto oldDebugKey = reinterpret_cast <uintptr_t >(from);
500500 auto newDebugKey = reinterpret_cast <uintptr_t >(to);
501- RELEASE_ASSERT (m_allocationInfos.count (oldDebugKey) > 0 );
501+ RELEASE_ASSERT (m_allocationInfos.contains (oldDebugKey));
502502 m_allocationInfos[newDebugKey] = m_allocationInfos[oldDebugKey];
503503 m_allocationInfos[oldDebugKey].live = false ;
504504 m_allocationInfos[newDebugKey].size = newSize;
0 commit comments