mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:57:45 +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
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