mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-04 11:10:27 +02:00
Add assertion to detect double patching.
This triggers the bug at the right point, otherwise, double patching may be quite hard to track.
This commit is contained in:
parent
fe3aee2706
commit
a264ccee75
1 changed files with 1 additions and 0 deletions
|
@ -1367,6 +1367,7 @@ _jit_patch_at(jit_state_t *_jit, jit_node_t *instr, jit_node_t *label)
|
|||
{
|
||||
jit_int32_t mask;
|
||||
|
||||
assert(!(instr->flag & jit_flag_node));
|
||||
instr->flag |= jit_flag_node;
|
||||
switch (instr->code) {
|
||||
case jit_code_movi:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue