removeSuccessor: remove predecessor of destination if last jump

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@327 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 3094724277
commit 33702b2271
  1. 5
      jode/jode/flow/FlowBlock.java

@ -1391,9 +1391,10 @@ public class FlowBlock {
if (prev != null) if (prev != null)
prev.next = destJumps.next; prev.next = destJumps.next;
else { else {
if (destJumps.next == null) if (destJumps.next == null) {
successors.remove(jump.destination); successors.remove(jump.destination);
else jump.destination.predecessors.removeElement(this);
} else
successors.put(jump.destination, destJumps.next); successors.put(jump.destination, destJumps.next);
} }
} }

Loading…
Cancel
Save