Skip to content

Commit

Permalink
valtype_cellsize: use __builtin_assume
Browse files Browse the repository at this point in the history
this makes clang omit the bound check.
  • Loading branch information
yamt committed Jul 22, 2023
1 parent 2334d80 commit 197e574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cell.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ valtype_cellsize(enum valtype t)
assert(sizeof(void *) == sz * sizeof(struct cell));
break;
default:
assert(false);
xassert(false);
sz = 0;
break;
}
Expand Down

0 comments on commit 197e574

Please sign in to comment.