Skip to content

Commit

Permalink
Only look up Iterable once
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jul 3, 2018
1 parent b5a5d5b commit adb00ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/moar/spesh-plugins.nqp
Expand Up @@ -80,7 +80,7 @@ nqp::speshreg('perl6', 'maybemeth', -> $obj, str $name {
}

nqp::speshreg('perl6', 'decontrv', sub ($rv) {
$Iterable := nqp::gethllsym('perl6', 'Iterable');
$Iterable := nqp::gethllsym('perl6', 'Iterable') if nqp::eqaddr($Iterable, NQPMu);
nqp::speshguardtype($rv, nqp::what_nd($rv));
if nqp::isconcrete_nd($rv) && nqp::iscont($rv) {
# Guard that it's concrete, so this only applies for container
Expand Down

0 comments on commit adb00ba

Please sign in to comment.