diff --git a/AK/Variant.h b/AK/Variant.h index 4ec4eb70c7b..d558709f11e 100644 --- a/AK/Variant.h +++ b/AK/Variant.h @@ -278,14 +278,14 @@ public: } template - [[gnu::noinline]] T& get() + T& get() { VERIFY(has()); return *bit_cast(&m_data); } template - [[gnu::noinline]] const T* get_pointer() const + const T* get_pointer() const { if (index_of() == m_index) return bit_cast(&m_data); @@ -293,7 +293,7 @@ public: } template - [[gnu::noinline]] const T& get() const + const T& get() const { VERIFY(has()); return *bit_cast(&m_data);