mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK: Remove [[gnu::noinline]] attribute from some variant members
These were left-overs from a debugging session :P
This commit is contained in:
parent
3bc3a7a23a
commit
3f350c3b65
Notes:
sideshowbarker
2024-07-18 17:34:51 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/3f350c3b65e Pull-request: https://github.com/SerenityOS/serenity/pull/7376
1 changed files with 3 additions and 3 deletions
|
@ -278,14 +278,14 @@ public:
|
|||
}
|
||||
|
||||
template<typename T>
|
||||
[[gnu::noinline]] T& get()
|
||||
T& get()
|
||||
{
|
||||
VERIFY(has<T>());
|
||||
return *bit_cast<T*>(&m_data);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
[[gnu::noinline]] const T* get_pointer() const
|
||||
const T* get_pointer() const
|
||||
{
|
||||
if (index_of<T>() == m_index)
|
||||
return bit_cast<const T*>(&m_data);
|
||||
|
@ -293,7 +293,7 @@ public:
|
|||
}
|
||||
|
||||
template<typename T>
|
||||
[[gnu::noinline]] const T& get() const
|
||||
const T& get() const
|
||||
{
|
||||
VERIFY(has<T>());
|
||||
return *bit_cast<const T*>(&m_data);
|
||||
|
|
Loading…
Reference in a new issue