]> git.unchartedbackwaters.co.uk Git - francis/libjit.git/commitdiff
jit_insn_store: use the destination type to determine the store opcode,
authorRhys Weatherley <rweather@southern-storm.com.au>
Fri, 5 Nov 2004 04:00:59 +0000 (04:00 +0000)
committerRhys Weatherley <rweather@southern-storm.com.au>
Fri, 5 Nov 2004 04:00:59 +0000 (04:00 +0000)
not the source value type.

ChangeLog
jit/jit-insn.c

index 722190037e7f986b18470e94ed3cbc72fcd4fc16..40830cf53da1697992c31bd8f681e463349cb22c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
 
+2004-11-05  Evin Robertson  <evin@users.sourceforge.net>
+
+       * 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  <evin@users.sourceforge.net>
 
        * jit/jit-function.c (jit_function_compile): clear block addresses
index 968487a94955a5044c808d918116269892217ff9..6c52113235610d05ff47ae6621a774517b402200 100644 (file)
@@ -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;