fix issue #78: IL NOT operator not working
authorMario de Sousa <msousa@fe.up.pt>
Fri, 21 Dec 2018 17:32:36 +0000
changeset 1075 c2779ecc2a0c
parent 1074 c46b3d3c9441
child 1076 efaa818ef637
fix issue #78: IL NOT operator not working
stage3/fill_candidate_datatypes.cc
--- a/stage3/fill_candidate_datatypes.cc	Thu Dec 20 18:55:22 2018 +0000
+++ b/stage3/fill_candidate_datatypes.cc	Fri Dec 21 17:32:36 2018 +0000
@@ -2011,7 +2011,7 @@
 	 *       We do not need to generate an error message. This error will be caught somewhere else!
 	 */
 	if (NULL == prev_il_instruction) return NULL;
-	if (NULL == il_operand)          return NULL;
+	if (NULL != il_operand)          return NULL;
 	for (unsigned int i = 0; i < prev_il_instruction->candidate_datatypes.size(); i++) {
 		if (get_datatype_info_c::is_ANY_BIT_compatible(prev_il_instruction->candidate_datatypes[i]))
 			add_datatype_to_candidate_list(symbol, prev_il_instruction->candidate_datatypes[i]);