Skip to content

Commit 37a3809

Browse files
committed
Initialize FldInfo on the ProfiledInstr for (Ld/St)SuperFld
1 parent 72302b4 commit 37a3809

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Backend/IRBuilder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4857,6 +4857,7 @@ IRBuilder::BuildElementC2(Js::OpCode newOpcode, uint32 offset, Js::RegSlot insta
48574857
regOpnd = this->BuildDstOpnd(regSlot);
48584858

48594859
instr = IR::ProfiledInstr::New(newOpcode, regOpnd, fieldSymOpnd, value2Opnd, m_func);
4860+
instr->AsProfiledInstr()->u.FldInfo() = *(m_func->GetReadOnlyProfileInfo()->GetFldInfo(propertyIdIndex));
48604861
this->AddInstr(instr, offset);
48614862
}
48624863
break;
@@ -4878,7 +4879,7 @@ IRBuilder::BuildElementC2(Js::OpCode newOpcode, uint32 offset, Js::RegSlot insta
48784879
value2Opnd = this->BuildSrcOpnd(value2Slot);
48794880

48804881
instr = IR::ProfiledInstr::New(newOpcode, fieldSymOpnd, regOpnd, value2Opnd, m_func);
4881-
4882+
instr->AsProfiledInstr()->u.FldInfo() = *(m_func->GetReadOnlyProfileInfo()->GetFldInfo(propertyIdIndex));
48824883
this->AddInstr(instr, offset);
48834884
break;
48844885
}

0 commit comments

Comments
 (0)