libjit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libjit] incorrect _jit_load_opcode call in jit-rules-interp.c


From: Jakob Löw
Subject: [Libjit] incorrect _jit_load_opcode call in jit-rules-interp.c
Date: Mon, 17 Sep 2018 00:39:22 +0200

_jit_load_opcode is given four arguments in jit-rules-interp.c, but
it's definition only takes two. This is a simple patch to fix this.



diff --git a/ChangeLog b/ChangeLog
index 2cf222d..87f1368 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-09-17  Jakob Löw  <address@hidden>
+
+       * jit/jit-rules-interp.c: Fix the call to _jit_load_opcode
passing more
+       arguments than needed.
+
 2018-09-01  Ken Brown  <address@hidden>
 
        * jit/jit-apply-x86.h: Remove reference to __CYGWIN32__.  This
is
diff --git a/jit/jit-rules-interp.c b/jit/jit-rules-interp.c
index 1465cfc..25c7917 100644
--- a/jit/jit-rules-interp.c
+++ b/jit/jit-rules-interp.c
@@ -975,7 +975,7 @@ load_value(jit_gencode_t gen, jit_value_t value,
int index)
                        default:
                                return;
                        }
-                       opcode = _jit_load_opcode(opcode, value->type, 
value, 0);
+                       opcode = _jit_load_opcode(opcode, value-
>type);
                        offset = value->frame_offset;
                }
                else
@@ -995,7 +995,7 @@ load_value(jit_gencode_t gen, jit_value_t value,
int index)
                        default:
                                return;
                        }
-                       opcode = _jit_load_opcode(opcode, value->type, 
value, 0);
+                       opcode = _jit_load_opcode(opcode, value-
>type);
                        offset = -(value->frame_offset + 1);
                }
 

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]