Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[dotnet] Use box rather than emit_op, just for consistency, in PAST::…
…Val.
  • Loading branch information
jnthn committed Dec 4, 2010
1 parent 572baa8 commit 82b3bea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dotnet/compiler/PAST2DNSTCompiler.pm
Expand Up @@ -919,9 +919,8 @@ our multi sub dnst_for(PAST::Val $val) {
}

# Otherwise, need to box it. Add to constants table if possible.
my $make_const := emit_op('box_' ~ $primitive,
DNST::Literal.new( :value($val.value), :escape($primitive eq 'str') )
);
my $make_const := box($primitive, DNST::Literal.new(
:value($val.value), :escape($primitive eq 'str') ));
if $*IN_LOADINIT || $*COMPILING_NQP_SETTING {
return $make_const;
}
Expand Down

0 comments on commit 82b3bea

Please sign in to comment.