Commit d8b39c26 authored by Skylot's avatar Skylot

Merge branch 'master' into type-inference-wip

parents 4e990ae2 618b014b
......@@ -221,6 +221,10 @@ public class ClassModifier extends AbstractVisitor {
if (callMth.getArgsCount() != mth.getMethodInfo().getArgsCount()) {
return false;
}
// rename method only from current class
if (!mth.getParentClass().equals(wrappedMth.getParentClass())) {
return false;
}
// all args must be registers passed from method args (allow only casts insns)
for (InsnArg arg : insn.getArguments()) {
if (!registersAndCastsOnly(arg)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment