aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/c.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/c.h b/src/include/c.h
index 59af5b5cb8e..230229c80e4 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