diff --git a/ChangeLog b/ChangeLog index 065fa8e60..dd6698c3b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-08-10 Paulo Andrade + + * lib/jit_aarch64.c: Correct bad setup for assertion + of consistency before a patch. + 2014-08-10 Paulo Andrade * lib/jit_mips-cpu.c: Correct typo in the jit_bmsr diff --git a/lib/jit_aarch64.c b/lib/jit_aarch64.c index b6850216c..ca522a597 100644 --- a/lib/jit_aarch64.c +++ b/lib/jit_aarch64.c @@ -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,