mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +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: 3f350c3b65
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>
|
template<typename T>
|
||||||
[[gnu::noinline]] T& get()
|
T& get()
|
||||||
{
|
{
|
||||||
VERIFY(has<T>());
|
VERIFY(has<T>());
|
||||||
return *bit_cast<T*>(&m_data);
|
return *bit_cast<T*>(&m_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
[[gnu::noinline]] const T* get_pointer() const
|
const T* get_pointer() const
|
||||||
{
|
{
|
||||||
if (index_of<T>() == m_index)
|
if (index_of<T>() == m_index)
|
||||||
return bit_cast<const T*>(&m_data);
|
return bit_cast<const T*>(&m_data);
|
||||||
|
@ -293,7 +293,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
[[gnu::noinline]] const T& get() const
|
const T& get() const
|
||||||
{
|
{
|
||||||
VERIFY(has<T>());
|
VERIFY(has<T>());
|
||||||
return *bit_cast<const T*>(&m_data);
|
return *bit_cast<const T*>(&m_data);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue