From c48d8ece8e56a27729d288e8e204183786906065 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Mon, 29 Jun 2009 10:29:12 +0000 Subject: [PATCH] bug fixes --- .../src/Analysis/Locality/DelayComputation.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Robust/src/Analysis/Locality/DelayComputation.java b/Robust/src/Analysis/Locality/DelayComputation.java index 3b4ec1e3..60f8aee5 100644 --- a/Robust/src/Analysis/Locality/DelayComputation.java +++ b/Robust/src/Analysis/Locality/DelayComputation.java @@ -783,14 +783,15 @@ public class DelayComputation { if (!notready) { //See if we depend on a conditional branch that is not ready Set branchset=branchmap.get(fn); - for(Iterator 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 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; + } } - } } -- 2.34.1