diff --git a/include/fast_float/constexpr_feature_detect.h b/include/fast_float/constexpr_feature_detect.h index 25a513d..af6474b 100644 --- a/include/fast_float/constexpr_feature_detect.h +++ b/include/fast_float/constexpr_feature_detect.h @@ -62,7 +62,7 @@ #if defined(__clang__) // needs testing #define FASTFLOAT_ASSUME(expr) __builtin_assume(expr) #elif defined(__GNUC__) && !defined(__ICC) // needs testing -#define FASTFLOAT_ASSUME(expr) __attribute__((expr)) +#define FASTFLOAT_ASSUME(expr) if (expr) {} else { __builtin_unreachable(); } #elif defined(__ICC) // needs testing #define FASTFLOAT_ASSUME(expr) __assume(expr) #elif defined(_MSC_VER)