equal
deleted
inserted
replaced
369 /****************************************/ |
369 /****************************************/ |
370 /***********************************/ |
370 /***********************************/ |
371 /* B 2.1 Instructions and Operands */ |
371 /* B 2.1 Instructions and Operands */ |
372 /***********************************/ |
372 /***********************************/ |
373 void *lvalue_check_c::visit(il_instruction_c *symbol) { |
373 void *lvalue_check_c::visit(il_instruction_c *symbol) { |
374 symbol->il_instruction->accept(*this); |
374 /* il_instruction will be NULL when parsing a label with no instruction |
|
375 * e.g.: label1: <---- il_instruction = NULL! |
|
376 * LD 33 |
|
377 * ... |
|
378 */ |
|
379 if (NULL != symbol->il_instruction) |
|
380 symbol->il_instruction->accept(*this); |
375 return NULL; |
381 return NULL; |
376 } |
382 } |
377 |
383 |
378 void *lvalue_check_c::visit(il_simple_operation_c *symbol) { |
384 void *lvalue_check_c::visit(il_simple_operation_c *symbol) { |
379 /* recursive call to fill the candidate data types list */ |
385 /* recursive call to fill the candidate data types list */ |