From 33504d18405fe7eccd437e874f72f79a6bbcf112 Mon Sep 17 00:00:00 2001 From: hoenicke Date: Mon, 6 May 2013 19:35:03 +0000 Subject: [PATCH] Small bug fix git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1417 379699f6-c40d-0410-875b-85095c16579e --- jode/src/net/sf/jode/flow/FlowBlock.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jode/src/net/sf/jode/flow/FlowBlock.java b/jode/src/net/sf/jode/flow/FlowBlock.java index c59033c..1ab8ff1 100644 --- a/jode/src/net/sf/jode/flow/FlowBlock.java +++ b/jode/src/net/sf/jode/flow/FlowBlock.java @@ -265,6 +265,9 @@ public class FlowBlock { cb.setInstruction(instr.negate()); cb.swapJump(prev); + /* Update lastModified if it happened to be the conditional jump */ + if (lastModified == prev) + lastModified = jump.prev; } } while (jumps != null) { @@ -1375,7 +1378,7 @@ public class FlowBlock { } /** - * The main analyzation. This calls doT1 and doT2 on apropriate + * The main analysis. This calls doT1 and doT2 on appropriate * regions. Only blocks whose block number lies in the given block number * range are considered. * @param start the start of the block number range.