Comment out invalid assertion.
authorMario de Sousa <msousa@fe.up.pt>
Thu, 25 Oct 2012 11:28:06 +0100
changeset 684 0e417d42cf6a
parent 683 2d96a47a75b1
child 685 5b19e376cc94
Comment out invalid assertion.
stage3/forced_narrow_candidate_datatypes.cc
--- a/stage3/forced_narrow_candidate_datatypes.cc	Thu Oct 25 11:15:55 2012 +0100
+++ b/stage3/forced_narrow_candidate_datatypes.cc	Thu Oct 25 11:28:06 2012 +0100
@@ -140,11 +140,15 @@
   }
 
   /* Assert that this algorithm managed to remove all NULL datatypes! */
+  /* NOTE: The forced_narrow_candidate_datatypes_c assumes that the original IEC 61131-3 source code does not have any bugs!
+   *       This means we cannot run this assertion here, as the compiler will bork in the presence of bug in the code being compiled! Not good!!
+   */
+  /*
   for(int i = symbol->n-1; i >= 0; i--) {
     if (NULL == symbol->elements[i]->datatype)
       ERROR;
   }
-
+  */
   return NULL;
 }