stage3/print_datatypes_error.cc
changeset 841 aed36f08545d
parent 834 783ef40344dd
child 847 079ab7d4b728
equal deleted inserted replaced
840:60cea9fea6e6 841:aed36f08545d
  1000 
  1000 
  1001   
  1001   
  1002 
  1002 
  1003 
  1003 
  1004 void *print_datatypes_error_c::handle_conditional_flow_control_IL_instruction(symbol_c *symbol, const char *oper) {
  1004 void *print_datatypes_error_c::handle_conditional_flow_control_IL_instruction(symbol_c *symbol, const char *oper) {
  1005 	if (NULL == symbol->datatype)
  1005 	if (!get_datatype_info_c::is_type_valid(symbol->datatype))
  1006 		STAGE3_ERROR(0, symbol, symbol, "%s operator must be preceded by an IL instruction producing a BOOL value.", oper);
  1006 		STAGE3_ERROR(0, symbol, symbol, "%s operator must be preceded by an IL instruction producing a BOOL value.", oper);
  1007 	return NULL;
  1007 	return NULL;
  1008 }
  1008 }
  1009 
  1009 
  1010 void *print_datatypes_error_c::visit(  CAL_operator_c *symbol) {return NULL;}
  1010 void *print_datatypes_error_c::visit(  CAL_operator_c *symbol) {return NULL;}