Skip to content

Commit

Permalink
Minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
pleath committed Feb 13, 2018
1 parent 08b82b8 commit 2f38842
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Backend/IRBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6415,7 +6415,7 @@ IRBuilder::BuildCallCommon(IR::Instr * instr, StackSym * symDst, Js::ArgSlot arg
count++;
#endif
}
AssertOrFailFast(argInstr->m_opcode == Js::OpCode::StartCall);
AssertOrFailFast(argInstr == nullptr || argInstr->m_opcode == Js::OpCode::StartCall);

if (m_argStack->Empty())
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Parser/Parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9524,7 +9524,7 @@ ParseNodePtr Parser::ParseVariableDeclaration(
Error(ERRUninitializedConst);
}

if (m_currentNodeFunc && pnodeThis->sxVar.sym->GetIsFormal())
if (m_currentNodeFunc && pnodeThis && pnodeThis->sxVar.sym->GetIsFormal())
{
m_currentNodeFunc->sxFnc.SetHasAnyWriteToFormals(true);
}
Expand Down

0 comments on commit 2f38842

Please sign in to comment.