Issue #197 AS1/2 missing storeregister before switch

This commit is contained in:
Jindra Petk
2013-07-09 17:13:01 +02:00
parent ec1e4c5ea6
commit 08702b724d

View File

@@ -389,11 +389,6 @@ public class ActionGraph extends Graph {
caseCommands.add(cc);
}
ret = new ArrayList<>();
if (!output.isEmpty()) {
if (output.get(output.size() - 1) instanceof StoreRegisterTreeItem) {
output.remove(output.size() - 1);
}
}
ret.addAll(output);
SwitchItem sti = new SwitchItem(null, currentLoop, switchedObject, caseValues, caseCommands, defaultCommands, valuesMapping);
ret.add(sti);