From 809d01d7dfd8f852e927443972bca8c1c03e60ca Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 23 Jun 2019 23:08:25 -0600 Subject: [PATCH] ircd: Mark explicit unreachables for clang's failure to elide dtors of noreturn constructed objects. --- ircd/db.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ircd/db.cc b/ircd/db.cc index 3506f460c..01f3d051d 100644 --- a/ircd/db.cc +++ b/ircd/db.cc @@ -2597,6 +2597,8 @@ noexcept { "Unavailable for passthru" }; + + __builtin_unreachable(); } void @@ -2637,6 +2639,8 @@ const noexcept { "Unavailable for passthru" }; + + __builtin_unreachable(); } void @@ -2649,6 +2653,8 @@ noexcept { "Unavailable for passthru" }; + + __builtin_unreachable(); } void @@ -2661,6 +2667,8 @@ const noexcept { "Unavailable for passthru" }; + + __builtin_unreachable(); } uint64_t @@ -2672,6 +2680,8 @@ noexcept { "Unavailable for passthru" }; + + __builtin_unreachable(); } ///////////////////////////////////////////////////////////////////////////////