mirror of
https://github.com/revanced/smali.git
synced 2025-05-04 16:44:25 +02:00
Fix-up InlineMethodResolver_version35 to use the new OdexedInvokeInline interface
This commit is contained in:
parent
a4b5f66e4c
commit
d89375a663
@ -76,15 +76,15 @@ public abstract class InlineMethodResolver {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public DeodexUtil.InlineMethod resolveExecuteInline(AnalyzedInstruction analyzedInstruction) {
|
public DeodexUtil.InlineMethod resolveExecuteInline(AnalyzedInstruction analyzedInstruction) {
|
||||||
assert analyzedInstruction.instruction instanceof OdexedInvokeVirtual;
|
assert analyzedInstruction.instruction instanceof OdexedInvokeInline;
|
||||||
|
|
||||||
OdexedInvokeVirtual instruction = (OdexedInvokeVirtual)analyzedInstruction.instruction;
|
OdexedInvokeInline instruction = (OdexedInvokeInline)analyzedInstruction.instruction;
|
||||||
int methodIndex = instruction.getVtableIndex();
|
int inlineIndex = instruction.getInlineIndex();
|
||||||
|
|
||||||
if (methodIndex < 0 || methodIndex >= inlineMethods.length) {
|
if (inlineIndex < 0 || inlineIndex >= inlineMethods.length) {
|
||||||
throw new RuntimeException("Invalid method index: " + methodIndex);
|
throw new RuntimeException("Invalid inline index: " + inlineIndex);
|
||||||
}
|
}
|
||||||
return inlineMethods[methodIndex];
|
return inlineMethods[inlineIndex];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user