[gsubgpos] Add an unlikely

This commit is contained in:
Behdad Esfahbod committed 2022-11-30 15:02:42 -07:00
1 parent d4dec54c3a
commit c6a4b60116
1 file changed
+2 -2
+2 -2
View File
@@ -100,8 +100,8 @@ struct hb_closure_context_t :
bool is_lookup_done (unsigned int lookup_index)
{
if (done_lookups_glyph_count->in_error () ||
done_lookups_glyph_set->in_error ())
if (unlikely (done_lookups_glyph_count->in_error () ||
done_lookups_glyph_set->in_error ()))
return true;
/* Have we visited this lookup with the current set of glyphs? */