From d943870413d7719d71ba4de61f1b35202f9a4529 Mon Sep 17 00:00:00 2001 From: orbea Date: Sun, 29 Sep 2019 19:30:47 +0000 Subject: [PATCH] common: Fix build error with clang 9. (#3123) clang 9 now provides _rotr and _rotl. --- common/include/x86emitter/x86_intrin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/include/x86emitter/x86_intrin.h b/common/include/x86emitter/x86_intrin.h index 4c4027015e..91a9242cb1 100644 --- a/common/include/x86emitter/x86_intrin.h +++ b/common/include/x86emitter/x86_intrin.h @@ -68,7 +68,7 @@ static __inline__ __attribute__((always_inline)) unsigned long long xgetbv(unsig #endif // Rotate instruction -#if defined(__clang__) +#if defined(__clang__) && __clang_major__ < 9 // Seriously what is so complicated to provided this bunch of intrinsics in clangs. [[maybe_unused]] static unsigned int _rotr(unsigned int x, int s) {