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 };