Skip to content

Commit 62e989e

Browse files
small fixes
1 parent 6285aee commit 62e989e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/Backend/Lower.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10519,7 +10519,7 @@ Lowerer::LowerStLoopBodyCount(IR::Instr* instr)
1051910519
IR::MemRefOpnd *loopBodyCounterOpnd = IR::MemRefOpnd::New((BYTE*)(header) + Js::LoopHeader::GetOffsetOfProfiledLoopCounter(), TyUint32, this->m_func);
1052010520
instr->SetDst(loopBodyCounterOpnd);
1052110521
instr->ReplaceSrc1(instr->GetSrc1()->AsRegOpnd()->UseWithNewType(TyUint32, this->m_func));
10522-
IR::AutoReuseOpnd(loopBodyCounterOpnd, this->m_func);
10522+
IR::AutoReuseOpnd autoReuse(loopBodyCounterOpnd, this->m_func);
1052310523
m_lowererMD.ChangeToAssign(instr);
1052410524
return;
1052510525
}

lib/Runtime/Language/JavascriptOperators.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8851,6 +8851,7 @@ using namespace Js;
88518851
if (!descriptor.GetterSpecified() || !descriptor.SetterSpecified())
88528852
{
88538853
// Unless both getter and setter are specified, make sure we don't overwrite old accessor.
8854+
#pragma prefast(suppress:6031, "We defaulted oldGetter and oldSetter already, so ignoring the return value here is safe")
88548855
obj->GetAccessors(propId, &oldGetter, &oldSetter, scriptContext);
88558856
}
88568857

0 commit comments

Comments
 (0)