mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-16 14:32:18 +00:00
AK: Always inline Optional::release_value()
This allows the compiler to optimize away the VERIFY(m_has_value) in many cases.
This commit is contained in:
parent
765ed9677b
commit
b4c0e27d26
Notes:
sideshowbarker
2024-07-18 01:53:29 +09:00
Author: https://github.com/awesomekling
Commit: b4c0e27d26
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ public:
|
|||
return release_value();
|
||||
}
|
||||
|
||||
[[nodiscard]] T release_value()
|
||||
[[nodiscard]] ALWAYS_INLINE T release_value()
|
||||
{
|
||||
VERIFY(m_has_value);
|
||||
T released_value = move(value());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue