From 6cf0c5cd6d0f2419dfa927af84103beb49a91863 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Mon, 18 Jan 2021 20:30:29 +0300 Subject: [PATCH] Fix fmt::throw_exception destructor v2 Remove destructor for MSVC. --- Utilities/StrFmt.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Utilities/StrFmt.h b/Utilities/StrFmt.h index ae9e0a2739..8505f52e04 100644 --- a/Utilities/StrFmt.h +++ b/Utilities/StrFmt.h @@ -297,17 +297,15 @@ namespace fmt raw_throw_exception({line, col, file, func}, reinterpret_cast(fmt), type_list, fmt_args_t{fmt_unveil::get(args)...}); } -#ifdef _DEBUG +#ifndef _MSC_VER +#if defined(_DEBUG) [[noreturn]] ~throw_exception() { -#ifdef _MSC_VER - __assume(false); -#else __builtin_unreachable(); -#endif } #else [[noreturn]] ~throw_exception(); +#endif #endif };