only add variables to used, that aren't already there

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@379 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 0a51875139
commit 1c8d109917
  1. 1
      jode/jode/flow/VariableStack.java

@ -88,6 +88,7 @@ public class VariableStack {
} }
Expression[] loads = new Expression[stackMap.length]; Expression[] loads = new Expression[stackMap.length];
for (int i=0; i< stackMap.length; i++) { for (int i=0; i< stackMap.length; i++) {
if (!used.contains(stackMap[i]))
used.addElement(stackMap[i]); used.addElement(stackMap[i]);
loads[i] = new LocalLoadOperator(stackMap[i].getType(), loads[i] = new LocalLoadOperator(stackMap[i].getType(),
stackMap[i]); stackMap[i]);

Loading…
Cancel
Save