From 2f388423dd23293fa809850ce7a83c8d9b9f8553 Mon Sep 17 00:00:00 2001 From: Paul Leathers Date: Tue, 13 Feb 2018 12:04:54 -0800 Subject: [PATCH] Minor corrections --- lib/Backend/IRBuilder.cpp | 2 +- lib/Parser/Parse.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Backend/IRBuilder.cpp b/lib/Backend/IRBuilder.cpp index 6b986d3c798..7560e0d9aa3 100644 --- a/lib/Backend/IRBuilder.cpp +++ b/lib/Backend/IRBuilder.cpp @@ -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()) { diff --git a/lib/Parser/Parse.cpp b/lib/Parser/Parse.cpp index 66988a63f64..3599509ae84 100644 --- a/lib/Parser/Parse.cpp +++ b/lib/Parser/Parse.cpp @@ -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); }