mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK: Prefer VERIFY_NOT_REACHED in ByteBuffer
This commit is contained in:
parent
47f29170b3
commit
25171e310b
Notes:
sideshowbarker
2024-07-17 05:23:40 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/25171e310b Pull-request: https://github.com/SerenityOS/serenity/pull/16748
1 changed files with 1 additions and 1 deletions
|
@ -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) };
|
||||
|
|
Loading…
Reference in a new issue