Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mark locationless messags as DISLOCATED
  • Loading branch information
TimToady committed Dec 14, 2015
1 parent fc24ca9 commit 219ec51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Optimizer.nqp
Expand Up @@ -357,7 +357,7 @@ my class Problems {

method add_memo($past_node, $message, @extras?, :$type!) {
my $mnode := $past_node.node;
if !nqp::can($mnode,'orig') { note($message); return; }
if !nqp::can($mnode,'orig') { note("[DISLOCATED MESSAGE] " ~ $message); return; }
my $line := HLL::Compiler.lineof($mnode.orig, $mnode.from, :cache(1));
my $key := $message ~ (+@extras ?? "\n" ~ join("\n", @extras) !! "");
my %cont := %!worrying;
Expand Down

0 comments on commit 219ec51

Please sign in to comment.