From 2a1dc20915e6a0375dbc38761954e1aee383ac98 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 27 Nov 2016 15:23:46 +0000 Subject: [Minor] Fix build with clang and BMI --- contrib/zstd/bitstream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/zstd') diff --git a/contrib/zstd/bitstream.h b/contrib/zstd/bitstream.h index e96798fe4..9f33c8865 100644 --- a/contrib/zstd/bitstream.h +++ b/contrib/zstd/bitstream.h @@ -298,7 +298,7 @@ MEM_STATIC size_t BIT_getUpperBits(size_t bitContainer, U32 const start) MEM_STATIC size_t BIT_getMiddleBits(size_t bitContainer, U32 const start, U32 const nbBits) { -#if defined(__BMI__) && defined(__GNUC__) /* experimental */ +#if defined(__BMI__) && defined(__GNUC__) && !defined(__llvm__) /* experimental */ # if defined(__x86_64__) if (sizeof(bitContainer)==8) return _bextr_u64(bitContainer, start, nbBits); -- cgit v1.2.3