summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-28 14:17:28 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-28 14:17:28 +0000
commitac835db6c8d5ed105ab3783c48a5b577fa0e05cf (patch)
tree89dded96563521e4ba50035f99b4e17e15102127 /compile.c
parentfbebfdf23db958e3bb06dc0d4ccadca48d748dff (diff)
* insnhelper.ci (vm_call_method): allow send! to call protected
methods as well. [ruby-core:12280] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 0174943968..a420589398 100644
--- a/compile.c
+++ b/compile.c
@@ -1487,6 +1487,9 @@ iseq_specialized_instruction(rb_iseq_t *iseq, INSN *iobj)
mid == id__send__ ) {
OPERAND_AT(iobj, 3) |= INT2FIX(VM_CALL_SEND_BIT);
}
+ if (mid == idSendBang || mid == id__send_bang) {
+ OPERAND_AT(iobj, 3) |= INT2FIX(VM_CALL_SEND_BANG_BIT);
+ }
}
return COMPILE_OK;
}