mirror of
https://github.com/revanced/smali.git
synced 2025-05-04 08:34: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
|
||||
public DeodexUtil.InlineMethod resolveExecuteInline(AnalyzedInstruction analyzedInstruction) {
|
||||
assert analyzedInstruction.instruction instanceof OdexedInvokeVirtual;
|
||||
assert analyzedInstruction.instruction instanceof OdexedInvokeInline;
|
||||
|
||||
OdexedInvokeVirtual instruction = (OdexedInvokeVirtual)analyzedInstruction.instruction;
|
||||
int methodIndex = instruction.getVtableIndex();
|
||||
OdexedInvokeInline instruction = (OdexedInvokeInline)analyzedInstruction.instruction;
|
||||
int inlineIndex = instruction.getInlineIndex();
|
||||
|
||||
if (methodIndex < 0 || methodIndex >= inlineMethods.length) {
|
||||
throw new RuntimeException("Invalid method index: " + methodIndex);
|
||||
if (inlineIndex < 0 || inlineIndex >= inlineMethods.length) {
|
||||
throw new RuntimeException("Invalid inline index: " + inlineIndex);
|
||||
}
|
||||
return inlineMethods[methodIndex];
|
||||
return inlineMethods[inlineIndex];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user