AK: Remove [[gnu::noinline]] attribute from some variant members

These were left-overs from a debugging session :P
This commit is contained in:
Ali Mohammad Pur 2021-05-22 09:44:18 +04:30 committed by Andreas Kling
parent 3bc3a7a23a
commit 3f350c3b65
Notes: sideshowbarker 2024-07-18 17:34:51 +09:00

View file

@ -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);