Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 52906f1

Browse files
committed
Implement pg_unreachable() on MSVC.
1 parent eaf7648 commit 52906f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/include/c.h

+2
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,8 @@ typedef NameData *Name;
755755
*/
756756
#if defined(HAVE__BUILTIN_UNREACHABLE) && !defined(USE_ASSERT_CHECKING)
757757
#define pg_unreachable() __builtin_unreachable()
758+
#elif defined(_MSC_VER) && !defined(USE_ASSERT_CHECKING)
759+
#define pg_unreachable() __assume(0)
758760
#else
759761
#define pg_unreachable() abort()
760762
#endif

0 commit comments

Comments
 (0)