mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-04 22:40:25 +02:00
AARCH64: Correct assertion test
* lib/jit_aarch64.c: Correct bad setup for assertion of consistency before a patch.
This commit is contained in:
parent
cf2be67c5a
commit
b23322100c
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-08-10 Paulo Andrade <pcpa@gnu.org>
|
||||
|
||||
* lib/jit_aarch64.c: Correct bad setup for assertion
|
||||
of consistency before a patch.
|
||||
|
||||
2014-08-10 Paulo Andrade <pcpa@gnu.org>
|
||||
|
||||
* lib/jit_mips-cpu.c: Correct typo in the jit_bmsr
|
||||
|
|
|
@ -1196,6 +1196,10 @@ _patch(jit_state_t *_jit, jit_word_t instr, jit_node_t *node)
|
|||
jit_int32_t flag;
|
||||
|
||||
assert(node->flag & jit_flag_node);
|
||||
if (node->code == jit_code_movi)
|
||||
flag = node->v.n->flag;
|
||||
else
|
||||
flag = node->u.n->flag;
|
||||
assert(!(flag & jit_flag_patch));
|
||||
if (_jitc->patches.offset >= _jitc->patches.length) {
|
||||
jit_realloc((jit_pointer_t *)&_jitc->patches.ptr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue