Remove assertion being failed by IL labels (IL labels do not yet have specific datatypes).
authormjsousa
Mon, 24 Feb 2014 22:00:55 +0000
changeset 872 3d682f87c870
parent 869 d88f47549408
child 873 dea39ef02847
Remove assertion being failed by IL labels (IL labels do not yet have specific datatypes).
stage4/generate_c/generate_c.cc
--- a/stage4/generate_c/generate_c.cc	Sun Feb 16 14:29:31 2014 +0000
+++ b/stage4/generate_c/generate_c.cc	Mon Feb 24 22:00:55 2014 +0000
@@ -351,7 +351,7 @@
     
     static bool is_complex_type(symbol_c *symbol) {
       if (NULL == symbol) ERROR;
-      if (!get_datatype_info_c::is_type_valid     (symbol->datatype)) ERROR;
+      if (!get_datatype_info_c::is_type_valid     (symbol->datatype)) return false;
       return (   get_datatype_info_c::is_structure(symbol->datatype) 
               || get_datatype_info_c::is_array    (symbol->datatype) 
              );