AK: Prefer VERIFY_NOT_REACHED in ByteBuffer

This commit is contained in:
Nico Weber 2022-12-31 13:10:42 -05:00 committed by Andreas Kling
parent 47f29170b3
commit 25171e310b
Notes: sideshowbarker 2024-07-17 05:23:40 +09:00

View file

@ -81,7 +81,7 @@ public:
{
auto buffer = TRY(create_uninitialized(size));
if (buffer.m_inline && size > inline_capacity)
__builtin_unreachable();
VERIFY_NOT_REACHED();
if (size != 0)
__builtin_memcpy(buffer.data(), data, size);
return { move(buffer) };