lrh
[fw/sdcc] / src / SDCCcflow.c
index aff9a856b1ac0778bdcd49cefd3269a1b7638aee..e3befba85b65249664df21bdf03121b9aa48e650 100644 (file)
@@ -131,6 +131,12 @@ eBBSuccessors (eBBlock ** ebbs, int count)
 
                  addSuccessor (ebbs[i], ebbs[j]);      /* add it */
                }
+             else
+               {
+                 if (i && ebbs[i-1]->ech && ebbs[i-1]->ech->op==IFX) {
+                   ebbs[i]->isConditionalExitFrom=ebbs[i-1];
+                 }
+               }
            }                   /* no instructions in the block */
          /* could happen for dummy blocks */
          else