From c503c6010e88595d35bda3d526c746a47fb9c693 Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: Fri, 5 Nov 2004 04:00:59 +0000 Subject: [PATCH] jit_insn_store: use the destination type to determine the store opcode, not the source value type. --- ChangeLog | 5 +++++ jit/jit-insn.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.47.3