summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--vm_insnhelper.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 9d3433a063..3058808ded 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Oct 19 10:24:03 2012 Koichi Sasada <ko1@atdot.net>
+
+ * vm_insnhelper.c (vm_search_method): remove needless local variable.
+
Fri Oct 19 10:22:26 2012 Koichi Sasada <ko1@atdot.net>
* benchmark/bmx_temp.rb: removed.
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 17753d383c..09e5e6390b 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -843,15 +843,13 @@ static void
vm_search_method(rb_call_info_t *ci, VALUE recv)
{
VALUE klass = CLASS_OF(recv);
- rb_method_entry_t *me;
#if OPT_INLINE_METHOD_CACHE
if (LIKELY(GET_VM_STATE_VERSION() == ci->vmstat && klass == ci->klass)) {
/* cache hit! */
}
else {
- me = rb_method_entry(klass, ci->mid, &ci->defined_class);
- ci->me = me;
+ ci->me = rb_method_entry(klass, ci->mid, &ci->defined_class);
ci->klass = klass;
ci->vmstat = GET_VM_STATE_VERSION();
ci->call = vm_call_general;