diff --git a/src/common.h b/src/common.h index 371436a4..eb65952d 100644 --- a/src/common.h +++ b/src/common.h @@ -61,6 +61,8 @@ */ #if defined(__GNUC__) || defined(__clang__) #define __UNREACHABLE __builtin_unreachable() +#elif defined(_MSC_VER) +#define __UNREACHABLE __assume(false) #else /* unspported compilers */ /* clang-format off */ #define __UNREACHABLE do { /* nop */ } while (0)