diff options
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index caaab54e1d..d1b136e684 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1852,6 +1852,11 @@ vm_call_general(rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_call_info_t *ci static VALUE vm_call_super_method(rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_call_info_t *ci) { +#ifdef _WIN32 + volatile int x = 0; /* a workaround to avoid VC++ optimization which + makes vm_call_super_method as an alias of + vm_call_general! */ +#endif return vm_call_method(th, reg_cfp, ci); } |