From 00b093ec6251f9f0976eccfe28d7b55d1d49b85d Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 31 Jan 2020 02:03:34 -0800 Subject: [PATCH] util: remove spurious error in parent offset calc --- .../libvapours/include/vapours/util/util_parent_of_member.hpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libraries/libvapours/include/vapours/util/util_parent_of_member.hpp b/libraries/libvapours/include/vapours/util/util_parent_of_member.hpp index df2e0c57c..66f9b1b99 100644 --- a/libraries/libvapours/include/vapours/util/util_parent_of_member.hpp +++ b/libraries/libvapours/include/vapours/util/util_parent_of_member.hpp @@ -83,10 +83,6 @@ namespace ams::util { const auto start = std::addressof(cur_union.data.members[0]); const auto next = GetNextAddress(start, target); - if constexpr (Offset > 0x10) { - __builtin_unreachable(); - } - if (next != target) { if constexpr (Offset < sizeof(MemberType) - 1) { return OffsetOfImpl(member, cur_union.next_union);