only do this if we are using oooj-style tasks after this analysis otherwise it crashes
authorjjenista <jjenista>
Wed, 11 May 2011 17:59:18 +0000 (17:59 +0000)
committerjjenista <jjenista>
Wed, 11 May 2011 17:59:18 +0000 (17:59 +0000)
Robust/src/Analysis/Disjoint/DisjointAnalysis.java

index fae647f989182a3b6a28a0872486ee7dbd33c3fc..6f706d11481bd0bd6740951ac2a9702f2d8b9ee2 100644 (file)
@@ -1723,11 +1723,13 @@ public class DisjointAnalysis implements HeapAnalysis {
       // of programs with no tasks/SESEs/rblocks...
       //XXXXXXXXXXXXXXXXXXXXXXXXX
       //need to consider more
-      FlatNode nextFN=fmCallee.getNext(0);
-      if( nextFN instanceof FlatSESEEnterNode ) {
-        FlatSESEEnterNode calleeSESE=(FlatSESEEnterNode)nextFN;
-        if(!calleeSESE.getIsLeafSESE()) {
-          rg.makeInaccessible(liveness.getLiveInTemps(fmContaining, fn) );
+      if( state.OOOJAVA ) {
+        FlatNode nextFN=fmCallee.getNext(0);
+        if( nextFN instanceof FlatSESEEnterNode ) {
+          FlatSESEEnterNode calleeSESE=(FlatSESEEnterNode)nextFN;
+          if(!calleeSESE.getIsLeafSESE()) {
+            rg.makeInaccessible(liveness.getLiveInTemps(fmContaining, fn) );
+          }
         }
       }