Don't use cecil coll iterator for speed
This commit is contained in:
parent
91cc161a9d
commit
cac39b8a01
|
@ -50,18 +50,18 @@ namespace de4dot.blocks.cflow {
|
||||||
argBase = 1;
|
argBase = 1;
|
||||||
args.Add(new UnknownValue());
|
args.Add(new UnknownValue());
|
||||||
}
|
}
|
||||||
foreach (var arg in parameterDefinitions)
|
for (int i = 0; i < parameterDefinitions.Count; i++)
|
||||||
args.Add(getUnknownValue(arg.ParameterType));
|
args.Add(getUnknownValue(parameterDefinitions[i].ParameterType));
|
||||||
|
|
||||||
if (initLocals) {
|
if (initLocals) {
|
||||||
locals.Clear();
|
locals.Clear();
|
||||||
foreach (var local in variableDefinitions)
|
for (int i = 0; i < variableDefinitions.Count; i++)
|
||||||
locals.Add(getDefaultValue(local.VariableType));
|
locals.Add(getDefaultValue(variableDefinitions[i].VariableType));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
locals.Clear();
|
locals.Clear();
|
||||||
foreach (var local in variableDefinitions)
|
for (int i = 0; i < variableDefinitions.Count; i++)
|
||||||
locals.Add(getUnknownValue(local.VariableType));
|
locals.Add(getUnknownValue(variableDefinitions[i].VariableType));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user