From 2a04b630baf8f040197f41c5debd02845d96f1f8 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 24 Feb 2021 07:33:09 -0800 Subject: [PATCH] SaveState: Fix Snappy build error on older clang. --- ext/snappy/snappy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/snappy/snappy.cpp b/ext/snappy/snappy.cpp index d177d574dc..2a89d49d2f 100644 --- a/ext/snappy/snappy.cpp +++ b/ext/snappy/snappy.cpp @@ -1026,7 +1026,7 @@ size_t AdvanceToNextTag(const uint8_t** ip_p, size_t* tag) { size_t literal_len = *tag >> 2; size_t tag_type = *tag; bool is_literal; -#if defined(__GNUC__) && defined(__x86_64__) +#if defined(__GNUC__) && defined(__x86_64__) && defined(__GCC_ASM_FLAG_OUTPUTS__) // TODO clang misses the fact that the (c & 3) already correctly // sets the zero flag. asm("and $3, %k[tag_type]\n\t"