From 3009e181ab901f2555e4469c1813e59025f15aec Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 23 Oct 1998 20:36:40 +0000 Subject: [PATCH] do not combine nop with void expr git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@67 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/flow/RemoveEmpty.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jode/jode/flow/RemoveEmpty.java b/jode/jode/flow/RemoveEmpty.java index c35cff2..6052f26 100644 --- a/jode/jode/flow/RemoveEmpty.java +++ b/jode/jode/flow/RemoveEmpty.java @@ -47,6 +47,8 @@ public class RemoveEmpty implements Transformation { if (prev.jump != null) return false; instr = (Instruction) prev.getInstruction(); + if (instr.getType() == jode.Type.tVoid) + return false; instr.setType(prevInstr.getType()); } catch (NullPointerException ex) { return false;