Skip to content

Commit 7b51abc

Browse files
matyhtfCopilot
andcommitted
Use ZEND_UNREACHABLE for MSVC compatibility
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d4db2fc commit 7b51abc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/core/object.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ Object toExactObject(const Variant &v) {
284284

285285
[[noreturn]] static void throwExactTypeError(const char *expected, const Variant &v) {
286286
throwExceptionEx(zend_ce_type_error, 0, "Return value must be of type %s, %s returned", expected, v.typeStr());
287-
__builtin_unreachable();
287+
ZEND_UNREACHABLE();
288288
}
289289

290290
String toExactString(const Variant &v) {

0 commit comments

Comments
 (0)