[macruby-changes] [3211] MacRuby/trunk/compiler.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jan 7 22:19:51 PST 2010
Revision: 3211
http://trac.macosforge.org/projects/ruby/changeset/3211
Author: lsansonetti at apple.com
Date: 2010-01-07 22:19:50 -0800 (Thu, 07 Jan 2010)
Log Message:
-----------
fixed a bug in the #send method inliner where protected methods would not be callable
Modified Paths:
--------------
MacRuby/trunk/compiler.cpp
Modified: MacRuby/trunk/compiler.cpp
===================================================================
--- MacRuby/trunk/compiler.cpp 2010-01-08 06:19:13 UTC (rev 3210)
+++ MacRuby/trunk/compiler.cpp 2010-01-08 06:19:50 UTC (rev 3211)
@@ -2616,7 +2616,8 @@
bb = thenBB;
std::vector<Value *> new_params;
new_params.push_back(compile_mcache(new_sel, false));
- new_params.push_back(params[1]);
+ // Compile a null top reference, to ignore protected visibility.
+ new_params.push_back(ConstantInt::get(RubyObjTy, 0));
new_params.push_back(params[2]);
new_params.push_back(compile_sel(new_sel));
new_params.push_back(params[4]);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100107/d399acd0/attachment.html>
More information about the macruby-changes
mailing list