# HG changeset patch
# User mjsousa
# Date 1377153573 -3600
# Node ID aed36f08545d4919d5972e6197e00f9869ddee40
# Parent  60cea9fea6e6124d4f7906dae92d84f1f7863348
Fix detection of datatype errors on IL conditional flow control operators (JMPC, RETC, ...)

diff -r 60cea9fea6e6 -r aed36f08545d stage3/print_datatypes_error.cc
--- a/stage3/print_datatypes_error.cc	Wed Aug 21 21:56:41 2013 +0100
+++ b/stage3/print_datatypes_error.cc	Thu Aug 22 07:39:33 2013 +0100
@@ -1002,7 +1002,7 @@
 
 
 void *print_datatypes_error_c::handle_conditional_flow_control_IL_instruction(symbol_c *symbol, const char *oper) {
-	if (NULL == symbol->datatype)
+	if (!get_datatype_info_c::is_type_valid(symbol->datatype))
 		STAGE3_ERROR(0, symbol, symbol, "%s operator must be preceded by an IL instruction producing a BOOL value.", oper);
 	return NULL;
 }