From bb9917913f735855aea54f41f10e0c7be3632e88 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 15 Oct 2017 18:20:25 -0400 Subject: [PATCH] [set] Disable vectorization Fixes clang "non-const reference cannot bind to vector element" error. --- src/hb-set-private.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hb-set-private.hh b/src/hb-set-private.hh index a7ca4f4a5..9cb996743 100644 --- a/src/hb-set-private.hh +++ b/src/hb-set-private.hh @@ -136,7 +136,9 @@ struct hb_set_t typedef uint64_t elt_t; -#if HAVE_VECTOR_SIZE +#if 0 && HAVE_VECTOR_SIZE + /* The vectorized version does not work with clang as non-const + * elt() errs /*non-const reference cannot bind to vector element". */ typedef elt_t vector_t __attribute__((vector_size (PAGE_BITS / 8))); #else typedef hb_vector_size_t vector_t;