| Index: Source/wtf/Compiler.h
|
| diff --git a/Source/wtf/Compiler.h b/Source/wtf/Compiler.h
|
| index f5ede42f9f46da5a94a488ab1393475c5dbbe292..9c76897555854c5b642652bc8a67f4f88d7cece4 100644
|
| --- a/Source/wtf/Compiler.h
|
| +++ b/Source/wtf/Compiler.h
|
| @@ -153,7 +153,7 @@
|
| /* UNLIKELY */
|
|
|
| #ifndef UNLIKELY
|
| -#if COMPILER(GCC)
|
| +#if COMPILER(GCC) || COMPILER(CLANG)
|
| #define UNLIKELY(x) __builtin_expect((x), 0)
|
| #else
|
| #define UNLIKELY(x) (x)
|
| @@ -164,7 +164,7 @@
|
| /* LIKELY */
|
|
|
| #ifndef LIKELY
|
| -#if COMPILER(GCC)
|
| +#if COMPILER(GCC) || COMPILER(CLANG)
|
| #define LIKELY(x) __builtin_expect((x), 1)
|
| #else
|
| #define LIKELY(x) (x)
|
|
|