Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix compilation of indirect method calls.
  • Loading branch information
jnthn committed Jul 14, 2012
1 parent d7ecca7 commit 39bd6cf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/QPerl6/Actions.pm
Expand Up @@ -2980,9 +2980,8 @@ class QPerl6::Actions is HLL::Actions {
unless $past.isa(QAST::Op) && $past.op() eq 'callmethod' {
$/.CURSOR.panic("Cannot use " ~ $<sym>.Str ~ " on a non-identifier method call");
}
$past.unshift(pir::isa($past.name, 'String') ??
$*W.add_string_constant($past.name) !!
$past.name);
$past.unshift($*W.add_string_constant($past.name))
if $past.name ne '';
$past.name('dispatch:<' ~ ~$<sym> ~ '>');
make $past;
}
Expand Down Expand Up @@ -3078,7 +3077,7 @@ class QPerl6::Actions is HLL::Actions {
}
}
elsif $<quote> {
$past.name(
$past.unshift(
QAST::Op.new(
:op<unbox_s>,
$<quote>.ast
Expand Down

0 comments on commit 39bd6cf

Please sign in to comment.