[set] Disable vectorization

Fixes clang "non-const reference cannot bind to vector element" error.
This commit is contained in:
Behdad Esfahbod 2017-10-15 18:20:25 -04:00
parent 221ce6c18f
commit bb9917913f
1 changed files with 3 additions and 1 deletions

View File

@ -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<elt_t, PAGE_BITS / 8> vector_t;