stage3/narrow_candidate_datatypes.cc
changeset 489 2c874cccbb44
parent 487 1619b2fe03e1
child 490 29f6ab0bf954
equal deleted inserted replaced
488:c833f83aac8c 489:2c874cccbb44
   853 	il_operand->accept(*this);
   853 	il_operand->accept(*this);
   854 	return NULL;
   854 	return NULL;
   855 }
   855 }
   856 
   856 
   857 void *narrow_candidate_datatypes_c::visit(ST_operator_c *symbol) {
   857 void *narrow_candidate_datatypes_c::visit(ST_operator_c *symbol) {
   858 	if (debug) printf("narrow_candidate_datatypes_c::visit(ST_operator_c *symbol) called.\n");
       
   859 	if (symbol->candidate_datatypes.size() != 1)
   858 	if (symbol->candidate_datatypes.size() != 1)
   860 		return NULL;
   859 		return NULL;
   861 	symbol->datatype = symbol->candidate_datatypes[0];
   860 	symbol->datatype = symbol->candidate_datatypes[0];
   862 	/* set the datatype for the operand */
   861 	/* set the datatype for the operand */
   863 	il_operand->datatype = symbol->datatype;
   862 	il_operand->datatype = symbol->datatype;