fixed loop detection, again

This commit is contained in:
Jindra Pet��k
2013-07-11 13:20:47 +02:00
parent 02cd80d7e9
commit b5a516a557
@@ -1157,6 +1157,9 @@ public class Graph {
loopcand:
for (GraphPart cand : currentLoop.breakCandidates) {
for (GraphPart cand2 : currentLoop.breakCandidates) {
if (cand == cand2) {
continue;
}
if (cand.leadsTo(code, cand2, loops)) {
int lev1 = Integer.MAX_VALUE;
int lev2 = Integer.MAX_VALUE;