Skip to content

Commit 1f5c973

Browse files
committed
Fix thinko in getattr/bindattr code-gen opt
1 parent a39f561 commit 1f5c973

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vm/moar/QAST/QASTOperationsMAST.nqp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2612,7 +2612,7 @@ sub add_bindattr_op($nqpop, $hintedop, $namedop, $want) {
26122612
my $val_mast := $qastcomp.as_mast( :$want, $op[3] );
26132613
my $obj_mast := $qastcomp.as_mast( :want($MVM_reg_obj), $op[0] );
26142614
my $type_mast := $qastcomp.as_mast( :want($MVM_reg_obj),
2615-
nqp::istype($op[1], QAST::WVal) && !nqp::isconcrete($op[1])
2615+
nqp::istype($op[1], QAST::WVal) && !nqp::isconcrete($op[1].value)
26162616
?? $op[1]
26172617
!! QAST::Op.new( :op('decont'), $op[1] ));
26182618
my int $hint := -1;
@@ -2652,7 +2652,7 @@ sub add_getattr_op($nqpop, $hintedop, $namedop, $want) {
26522652
my $regalloc := $*REGALLOC;
26532653
my $obj_mast := $qastcomp.as_mast( :want($MVM_reg_obj), $op[0] );
26542654
my $type_mast := $qastcomp.as_mast( :want($MVM_reg_obj),
2655-
nqp::istype($op[1], QAST::WVal) && !nqp::isconcrete($op[1])
2655+
nqp::istype($op[1], QAST::WVal) && !nqp::isconcrete($op[1].value)
26562656
?? $op[1]
26572657
!! QAST::Op.new( :op('decont'), $op[1] ));
26582658
my int $hint := -1;

0 commit comments

Comments
 (0)