Delete unecessary copy_candidate_datatype_list() function.
authorMario de Sousa <msousa@fe.up.pt>
Fri, 09 Mar 2012 10:51:56 +0000
changeset 468 46f8154d506e
parent 467 4910eaa1206a
child 469 9fe6c4633ed6
Delete unecessary copy_candidate_datatype_list() function.
stage3/datatype_functions.cc
--- a/stage3/datatype_functions.cc	Thu Mar 08 19:14:45 2012 +0000
+++ b/stage3/datatype_functions.cc	Fri Mar 09 10:51:56 2012 +0000
@@ -221,7 +221,7 @@
 	if (symbol->prev_il_instruction.empty())
 		return;
 	
-	copy_candidate_datatype_list(symbol->prev_il_instruction[0] /*from*/, symbol /*to*/);
+	symbol->candidate_datatypes = symbol->prev_il_instruction[0]->candidate_datatypes;
 	for (unsigned int i = 1; i < symbol->prev_il_instruction.size(); i++) {
 		intersect_candidate_datatype_list(symbol /*origin, dest.*/, symbol->prev_il_instruction[i] /*with*/);
 	}