Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Correct method call done in optimizer when optimizer private method c…
…alls.
  • Loading branch information
jnthn committed Mar 1, 2012
1 parent ff75374 commit 4f557f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Optimizer.pm
Expand Up @@ -210,7 +210,7 @@ class Perl6::Optimizer {
my $meth := $pkg.HOW.find_private_method($pkg, $name);
if $meth {
try {
my $call := $*W.get_object_sc_ref_past($meth); # may fail, thus the try
my $call := $*W.get_ref($meth); # may fail, thus the try
my $inv := $op.shift;
$op.shift; $op.shift; # name, package (both pre-resolved now)
$op.unshift($inv);
Expand Down

0 comments on commit 4f557f8

Please sign in to comment.