Skip to content

Commit

Permalink
fix prefast warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeHolman committed Dec 12, 2017
1 parent a7f6761 commit 6e6301c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Backend/Inline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2481,7 +2481,7 @@ IR::Instr * Inline::InlineApplyBuiltInTargetWithArray(IR::Instr * callInstr, con
{
return callInstr;
}

AnalysisAssert(applyTargetLdInstr != nullptr);
// Fixed function/function object checks for target built-in
callInstr->ReplaceSrc1(applyTargetLdInstr->GetDst());
EmitFixedMethodOrFunctionObjectChecksForBuiltIns(callInstr, callInstr, builtInInfo, false /*isPolymorphic*/, true /*isBuiltIn*/, false /*isCtor*/, true /*isInlined*/);
Expand Down Expand Up @@ -2664,6 +2664,7 @@ bool Inline::InlineApplyScriptTarget(IR::Instr *callInstr, const FunctionJITTime
{
return false;
}
AnalysisAssert(applyTargetLdInstr != nullptr);

if(applyTargetLdInstr->m_opcode != Js::OpCode::LdFldForCallApplyTarget ||
((applyTargetLdInstr->AsProfiledInstr()->u.FldInfo().flags & Js::FldInfo_FromAccessor) != 0))
Expand Down

0 comments on commit 6e6301c

Please sign in to comment.