# HG changeset patch # User Mario de Sousa # Date 1335365805 -3600 # Node ID cb78940b2cb870f1f34f86598becd90ab299f517 # Parent e7d6f28fc8823ef600749ea854aa7decd7966ba1 Remove access to NULL pointer. diff -r e7d6f28fc882 -r cb78940b2cb8 stage3/lvalue_check.cc --- a/stage3/lvalue_check.cc Wed Apr 25 15:46:53 2012 +0100 +++ b/stage3/lvalue_check.cc Wed Apr 25 15:56:45 2012 +0100 @@ -371,7 +371,13 @@ /* B 2.1 Instructions and Operands */ /***********************************/ void *lvalue_check_c::visit(il_instruction_c *symbol) { - symbol->il_instruction->accept(*this); + /* il_instruction will be NULL when parsing a label with no instruction + * e.g.: label1: <---- il_instruction = NULL! + * LD 33 + * ... + */ + if (NULL != symbol->il_instruction) + symbol->il_instruction->accept(*this); return NULL; }