This commit is contained in:
Jack Andersen 2016-02-18 10:53:01 -10:00
commit 41ecea7a37
1 changed files with 1 additions and 1 deletions

View File

@ -407,7 +407,7 @@ void Lexer::EmitVec4(IR& ir, const Lexer::OperationNode* funcNode, IR::RegID tar
const Parser::Token* imms[4]; const Parser::Token* imms[4];
for (int i=0 ; i<4 ; ++i) for (int i=0 ; i<4 ; ++i)
{ {
if (!gn->m_sub || gn->m_sub->m_tok.m_type != Parser::TokenType::NumLiteral) if (!gn || !gn->m_sub || gn->m_sub->m_tok.m_type != Parser::TokenType::NumLiteral)
{ {
opt = false; opt = false;
break; break;