Skip to content

Commit

Permalink
Add some missing compose calls.
Browse files Browse the repository at this point in the history
Prevents some weird errors when trying to look through CORE.
  • Loading branch information
jnthn committed Jan 18, 2013
1 parent 3a8d48a commit ebb415d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Perl6/Grammar.pm
Original file line number Diff line number Diff line change
Expand Up @@ -880,12 +880,14 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
# Tag UNIT with a magical lexical. Also if we're compiling CORE,
# give it such a tag too.
if %*COMPILING<%?OPTIONS><setting> eq 'NULL' {
$*W.install_lexical_symbol($*UNIT, '!CORE_MARKER',
$*W.pkg_create_mo($/, %*HOW<package>, :name('!CORE_MARKER')));
my $marker := $*W.pkg_create_mo($/, %*HOW<package>, :name('!CORE_MARKER'));
$marker.HOW.compose($marker);
$*W.install_lexical_symbol($*UNIT, '!CORE_MARKER', $marker);
}
else {
$*W.install_lexical_symbol($*UNIT, '!UNIT_MARKER',
$*W.pkg_create_mo($/, %*HOW<package>, :name('!UNIT_MARKER')));
my $marker := $*W.pkg_create_mo($/, %*HOW<package>, :name('!UNIT_MARKER'));
$marker.HOW.compose($marker);
$*W.install_lexical_symbol($*UNIT, '!UNIT_MARKER', $marker);
}
}

Expand Down

0 comments on commit ebb415d

Please sign in to comment.