Title: [286051] trunk/Source/bmalloc
Revision
286051
Author
ysuz...@apple.com
Date
2021-11-19 00:54:33 -0800 (Fri, 19 Nov 2021)

Log Message

[libpas] Unreviewed, build fix for relatively old clang on oss-fuzz
https://bugs.webkit.org/show_bug.cgi?id=233097

* libpas/src/libpas/pas_utils.h:
* libpas/src/libpas/pas_utils_prefix.h:
(__pas_depend_impl):
(__pas_depend):
(__pas_depend_cpu_only):

Modified Paths

Diff

Modified: trunk/Source/bmalloc/ChangeLog (286050 => 286051)


--- trunk/Source/bmalloc/ChangeLog	2021-11-19 08:51:53 UTC (rev 286050)
+++ trunk/Source/bmalloc/ChangeLog	2021-11-19 08:54:33 UTC (rev 286051)
@@ -1,3 +1,14 @@
+2021-11-19  Yusuke Suzuki  <ysuz...@apple.com>
+
+        [libpas] Unreviewed, build fix for relatively old clang on oss-fuzz
+        https://bugs.webkit.org/show_bug.cgi?id=233097
+
+        * libpas/src/libpas/pas_utils.h:
+        * libpas/src/libpas/pas_utils_prefix.h:
+        (__pas_depend_impl):
+        (__pas_depend):
+        (__pas_depend_cpu_only):
+
 2021-11-18  Basuke Suzuki  <basuke.suz...@sony.com>
 
         [bmalloc] freeableMemory and footprint of Heap are completely broken

Modified: trunk/Source/bmalloc/libpas/src/libpas/pas_utils.h (286050 => 286051)


--- trunk/Source/bmalloc/libpas/src/libpas/pas_utils.h	2021-11-19 08:51:53 UTC (rev 286050)
+++ trunk/Source/bmalloc/libpas/src/libpas/pas_utils.h	2021-11-19 08:54:33 UTC (rev 286051)
@@ -83,15 +83,11 @@
 
 #define PAS_ARM __PAS_ARM
 
-#if PAS_COMPILER(CLANG)
-#define PAS_TYPEOF(a) typeof (a)
-#else
 #ifdef __cplusplus
 #define PAS_TYPEOF(a) decltype (a)
 #else
 #define PAS_TYPEOF(a) typeof (a)
 #endif
-#endif
 
 /* NOTE: panic format string must have \n at the end. */
 PAS_API PAS_NO_RETURN void pas_panic(const char* format, ...) PAS_FORMAT_PRINTF(1, 2);

Modified: trunk/Source/bmalloc/libpas/src/libpas/pas_utils_prefix.h (286050 => 286051)


--- trunk/Source/bmalloc/libpas/src/libpas/pas_utils_prefix.h	2021-11-19 08:51:53 UTC (rev 286050)
+++ trunk/Source/bmalloc/libpas/src/libpas/pas_utils_prefix.h	2021-11-19 08:54:33 UTC (rev 286051)
@@ -112,7 +112,7 @@
 #endif
 }
 
-static __PAS_ALWAYS_INLINE unsigned __pas_depend_impl(unsigned long input, _Bool cpu_only)
+static __PAS_ALWAYS_INLINE unsigned __pas_depend_impl(unsigned long input, int cpu_only)
 {
     unsigned output;
 #if __PAS_ARM64
@@ -148,13 +148,13 @@
 
 static __PAS_ALWAYS_INLINE unsigned __pas_depend(unsigned long input)
 {
-    _Bool cpu_only = 0;
+    int cpu_only = 0;
     return __pas_depend_impl(input, cpu_only);
 }
 
 static __PAS_ALWAYS_INLINE unsigned __pas_depend_cpu_only(unsigned long input)
 {
-    _Bool cpu_only = 1;
+    int cpu_only = 1;
     return __pas_depend_impl(input, cpu_only);
 }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to