aboutsummaryrefslogtreecommitdiffstats
path: root/src/proguard/optimize/peephole/GotoGotoReplacer.java
diff options
context:
space:
mode:
authorBrint E. Kriebel <bekit@cyngn.com>2014-09-29 17:19:43 -0700
committerBrint E. Kriebel <bekit@cyngn.com>2014-09-29 17:19:43 -0700
commitb64a23b7cc2761f03879ceb6b030ae80171f11e2 (patch)
tree86ba49fd1b7275a7e293c3c3bc44e6317bebf67f /src/proguard/optimize/peephole/GotoGotoReplacer.java
parentfe926bab25e3af81265d4e0bbb79bcdb41b10635 (diff)
parent9961286c06c25cd03464d3e2b00bd9b9dedf96ba (diff)
downloadandroid_external_proguard-b64a23b7cc2761f03879ceb6b030ae80171f11e2.tar.gz
android_external_proguard-b64a23b7cc2761f03879ceb6b030ae80171f11e2.tar.bz2
android_external_proguard-b64a23b7cc2761f03879ceb6b030ae80171f11e2.zip
Diffstat (limited to 'src/proguard/optimize/peephole/GotoGotoReplacer.java')
-rw-r--r--src/proguard/optimize/peephole/GotoGotoReplacer.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/proguard/optimize/peephole/GotoGotoReplacer.java b/src/proguard/optimize/peephole/GotoGotoReplacer.java
index 7d7e66c..4a490a1 100644
--- a/src/proguard/optimize/peephole/GotoGotoReplacer.java
+++ b/src/proguard/optimize/peephole/GotoGotoReplacer.java
@@ -2,7 +2,7 @@
* ProGuard -- shrinking, optimization, obfuscation, and preverification
* of Java bytecode.
*
- * Copyright (c) 2002-2009 Eric Lafortune (eric@graphics.cornell.edu)
+ * Copyright (c) 2002-2013 Eric Lafortune (eric@graphics.cornell.edu)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
@@ -84,8 +84,9 @@ implements InstructionVisitor
int branchOffset = branchInstruction.branchOffset;
int targetOffset = offset + branchOffset;
- if (branchOffset != branchInstruction.length(offset) &&
- !codeAttributeEditor.isModified(offset) &&
+ if (branchOffset != 0 &&
+ branchOffset != branchInstruction.length(offset) &&
+ !codeAttributeEditor.isModified(offset) &&
!codeAttributeEditor.isModified(targetOffset))
{
Instruction targetInstruction =