(Hopefully) Fixed construction of dalvik goto instructions.

This commit is contained in:
Michael Herzberg 2015-06-21 15:25:32 +02:00
parent 42e5ec14e6
commit 4767929b66
1 changed files with 1 additions and 1 deletions

View File

@ -766,7 +766,7 @@ public class DexSSABuilder extends AbstractIntRegisterMachine {
*/
@Override
public void visitGoto(Goto instruction) {
emitInstruction(insts.GotoInstruction(getCurrentInstructionIndex(), -1));
emitInstruction(insts.GotoInstruction(getCurrentInstructionIndex(), method.getInstructionIndex(instruction.pc + instruction.destination)));
}
/**