[gvar] Add memory-barrier as in ArrayOf

This commit is contained in:
Behdad Esfahbod 2022-11-21 12:28:10 -07:00
parent b00a911fa7
commit 2e86700e30
1 changed files with 1 additions and 0 deletions

View File

@ -501,6 +501,7 @@ struct gvar
unsigned get_offset (unsigned i) const
{
if (unlikely (i > glyphCount)) return 0;
_hb_compiler_memory_r_barrier ();
return is_long_offset () ? get_long_offset_array ()[i] : get_short_offset_array ()[i] * 2;
}