From: Rhys Weatherley Date: Fri, 5 Nov 2004 04:00:59 +0000 (+0000) Subject: jit_insn_store: use the destination type to determine the store opcode, X-Git-Tag: r.0.0.6~26 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=c503c6010e88595d35bda3d526c746a47fb9c693;p=francis%2Flibjit.git jit_insn_store: use the destination type to determine the store opcode, not the source value type. --- diff --git a/ChangeLog b/ChangeLog index 7221900..40830cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,9 @@ +2004-11-05 Evin Robertson + + * jit/jit-insn.c (jit_insn_store): use the destination type + to determine the store opcode, not the source value type. + 2004-11-02 Evin Robertson * jit/jit-function.c (jit_function_compile): clear block addresses diff --git a/jit/jit-insn.c b/jit/jit-insn.c index 968487a..6c52113 100644 --- a/jit/jit-insn.c +++ b/jit/jit-insn.c @@ -1459,7 +1459,7 @@ int jit_insn_store(jit_function_t func, jit_value_t dest, jit_value_t value) jit_value_ref(func, dest); jit_value_ref(func, value); insn->opcode = (short)_jit_store_opcode - (JIT_OP_COPY_INT, JIT_OP_COPY_STORE_BYTE, value->type); + (JIT_OP_COPY_INT, JIT_OP_COPY_STORE_BYTE, dest->type); insn->dest = dest; insn->value1 = value; return 1;