bug fixes
authorbdemsky <bdemsky>
Mon, 29 Jun 2009 10:29:12 +0000 (10:29 +0000)
committerbdemsky <bdemsky>
Mon, 29 Jun 2009 10:29:12 +0000 (10:29 +0000)
Robust/src/Analysis/Locality/DelayComputation.java

index 3b4ec1e3c68e69bda91bc983b8de09a969b52c1c..60f8aee51acb04af218f510ebb0159235eda2165 100644 (file)
@@ -783,14 +783,15 @@ public class DelayComputation {
       if (!notready) {
        //See if we depend on a conditional branch that is not ready
        Set<FlatCondBranch> branchset=branchmap.get(fn);
-       for(Iterator<FlatCondBranch> branchit=branchset.iterator();branchit.hasNext();) {
-         FlatCondBranch fcb=branchit.next();
-         if (notreadynodes.contains(fcb)) {
-           //if we depend on a branch that isn't ready, we aren't ready
-           notready=true;
-           break;
+       if (branchset!=null)
+         for(Iterator<FlatCondBranch> branchit=branchset.iterator();branchit.hasNext();) {
+           FlatCondBranch fcb=branchit.next();
+           if (notreadynodes.contains(fcb)) {
+             //if we depend on a branch that isn't ready, we aren't ready
+             notready=true;
+             break;
+           }
          }
-       }
       }