From 3f350c3b65eed61c1fe4ec364debe890199deffd Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Sat, 22 May 2021 09:44:18 +0430 Subject: [PATCH] AK: Remove [[gnu::noinline]] attribute from some variant members These were left-overs from a debugging session :P --- AK/Variant.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AK/Variant.h b/AK/Variant.h index 4ec4eb70c7..d558709f11 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);