Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Avoid another common source of boxing.
In code-gen this time.
  • Loading branch information
jnthn committed Mar 9, 2016
1 parent c8db98b commit 5cbce49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/moar/QAST/QASTOperationsMAST.nqp
Expand Up @@ -34,7 +34,7 @@ class MAST::InstructionList {
has str $!filename;
has int $!lineno;

method new(@instructions, $result_reg, $result_kind, :$filename = '<anon>', :$lineno = 0) {
method new(@instructions, $result_reg, $result_kind, str :$filename = '<anon>', int :$lineno = 0) {
my $obj := nqp::create(self);
nqp::bindattr($obj, MAST::InstructionList, '@!instructions', @instructions);
nqp::bindattr($obj, MAST::InstructionList, '$!result_reg', $result_reg);
Expand Down

0 comments on commit 5cbce49

Please sign in to comment.