⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 286051 in webkit


Ignore:
Timestamp:
Nov 19, 2021, 12:54:33 AM (5 years ago)
Author:
ysuzuki@apple.com
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):

Location:
trunk/Source/bmalloc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/bmalloc/ChangeLog

    r286029 r286051  
     12021-11-19  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        [libpas] Unreviewed, build fix for relatively old clang on oss-fuzz
     4        https://bugs.webkit.org/show_bug.cgi?id=233097
     5
     6        * libpas/src/libpas/pas_utils.h:
     7        * libpas/src/libpas/pas_utils_prefix.h:
     8        (__pas_depend_impl):
     9        (__pas_depend):
     10        (__pas_depend_cpu_only):
     11
    1122021-11-18  Basuke Suzuki  <basuke.suzuki@sony.com>
    213
  • trunk/Source/bmalloc/libpas/src/libpas/pas_utils.h

    r285853 r286051  
    8484#define PAS_ARM __PAS_ARM
    8585
    86 #if PAS_COMPILER(CLANG)
    87 #define PAS_TYPEOF(a) typeof (a)
    88 #else
    8986#ifdef __cplusplus
    9087#define PAS_TYPEOF(a) decltype (a)
    9188#else
    9289#define PAS_TYPEOF(a) typeof (a)
    93 #endif
    9490#endif
    9591
  • trunk/Source/bmalloc/libpas/src/libpas/pas_utils_prefix.h

    r285853 r286051  
    113113}
    114114
    115 static __PAS_ALWAYS_INLINE unsigned __pas_depend_impl(unsigned long input, _Bool cpu_only)
     115static __PAS_ALWAYS_INLINE unsigned __pas_depend_impl(unsigned long input, int cpu_only)
    116116{
    117117    unsigned output;
     
    149149static __PAS_ALWAYS_INLINE unsigned __pas_depend(unsigned long input)
    150150{
    151     _Bool cpu_only = 0;
     151    int cpu_only = 0;
    152152    return __pas_depend_impl(input, cpu_only);
    153153}
     
    155155static __PAS_ALWAYS_INLINE unsigned __pas_depend_cpu_only(unsigned long input)
    156156{
    157     _Bool cpu_only = 1;
     157    int cpu_only = 1;
    158158    return __pas_depend_impl(input, cpu_only);
    159159}
Note: See TracChangeset for help on using the changeset viewer.