Skip to content

Commit

Permalink
Assert no guard tree buffer overrun
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Feb 18, 2020
1 parent 5e7e701 commit d3edc2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/spesh/arg_guard.c
Expand Up @@ -372,6 +372,7 @@ void MVM_spesh_arg_guard_regenerate(MVMThreadContext *tc, MVMSpeshArgGuard **gua
}
for (i = 0; i < MVM_VECTOR_ELEMS(by_callsite); i++)
add_nodes_for_callsite(tc, tree, i, candidates, by_callsite[i]);
assert(tree->used_nodes <= tree->num_nodes);

/* Install the produced argument guard. */
if (*guard_ptr) {
Expand Down

0 comments on commit d3edc2b

Please sign in to comment.