From 52906f175a05a4e7e5e4a0e6021c32b1bfb221cf Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Wed, 23 Jan 2013 12:47:00 +0200 Subject: [PATCH] Implement pg_unreachable() on MSVC. --- src/include/c.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/include/c.h b/src/include/c.h index 59af5b5cb8..230229c80e 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -755,6 +755,8 @@ typedef NameData *Name; */ #if defined(HAVE__BUILTIN_UNREACHABLE) && !defined(USE_ASSERT_CHECKING) #define pg_unreachable() __builtin_unreachable() +#elif defined(_MSC_VER) && !defined(USE_ASSERT_CHECKING) +#define pg_unreachable() __assume(0) #else #define pg_unreachable() abort() #endif -- 2.40.0