Title: [288459] trunk/Source/WTF
Revision
288459
Author
[email protected]
Date
2022-01-24 12:13:43 -0800 (Mon, 24 Jan 2022)

Log Message

REGRESION(r288200): [GTK][WPE] Build broken on Ubuntu 18.04
https://bugs.webkit.org/show_bug.cgi?id=235401

Patch by Michael Catanzaro <[email protected]> on 2022-01-24
Reviewed by Adrian Perez de Castro.

This implements WTF_CRASH_UNDER_CONSTEXPR_CONTEXT() properly for compatibility with older
compilers.

* wtf/Assertions.h:

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (288458 => 288459)


--- trunk/Source/WTF/ChangeLog	2022-01-24 20:01:13 UTC (rev 288458)
+++ trunk/Source/WTF/ChangeLog	2022-01-24 20:13:43 UTC (rev 288459)
@@ -1,3 +1,15 @@
+2022-01-24  Michael Catanzaro  <[email protected]>
+
+        REGRESION(r288200): [GTK][WPE] Build broken on Ubuntu 18.04
+        https://bugs.webkit.org/show_bug.cgi?id=235401
+
+        Reviewed by Adrian Perez de Castro.
+
+        This implements WTF_CRASH_UNDER_CONSTEXPR_CONTEXT() properly for compatibility with older
+        compilers.
+
+        * wtf/Assertions.h:
+
 2022-01-24  Mark Lam  <[email protected]>
 
         Add FixedVector::clear(), contains(), find(), and findMatching().

Modified: trunk/Source/WTF/wtf/Assertions.h (288458 => 288459)


--- trunk/Source/WTF/wtf/Assertions.h	2022-01-24 20:01:13 UTC (rev 288458)
+++ trunk/Source/WTF/wtf/Assertions.h	2022-01-24 20:13:43 UTC (rev 288459)
@@ -273,14 +273,14 @@
 #elif !ENABLE(DEVELOPER_MODE) && !OS(DARWIN)
 #ifdef __cplusplus
 #define CRASH() std::abort()
-#define CRASH_UNDER_CONSTEXPR_CONTEXT() std::abort()
+#define CRASH_UNDER_CONSTEXPR_CONTEXT() WTFBreakpointTrapUnderConstexprContext()
 #else
 #define CRASH() abort()
-#define CRASH_UNDER_CONSTEXPR_CONTEXT() abort()
+#define CRASH_UNDER_CONSTEXPR_CONTEXT() WTFBreakpointTrapUnderConstexprContext()
 #endif // __cplusplus
 #else
 #define CRASH() WTFCrash()
-#define CRASH_UNDER_CONSTEXPR_CONTEXT() WTFCrash()
+#define CRASH_UNDER_CONSTEXPR_CONTEXT() WTFBreakpointTrapUnderConstexprContext()
 #endif
 
 #endif // !defined(CRASH)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to