KT-1189 StackOverflow in ide

This commit is contained in:
svtk
2012-02-03 13:14:28 +04:00
parent 6251b413a2
commit 34ee879094
2 changed files with 40 additions and 1 deletions
@@ -315,7 +315,7 @@ public class Pseudocode {
}
private void collectAllowedDeadInstructions(Instruction allowedDeadInstruction, Set<Instruction> instructionSet, Set<Instruction> stopAllowDeadInstructions) {
if (stopAllowDeadInstructions.contains(allowedDeadInstruction)) return;
if (instructionSet.contains(allowedDeadInstruction) || stopAllowDeadInstructions.contains(allowedDeadInstruction)) return;
if (((InstructionImpl)allowedDeadInstruction).isDead()) {
instructionSet.add(allowedDeadInstruction);
for (Instruction instruction : allowedDeadInstruction.getNextInstructions()) {