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
stable
jochen 26 years ago
parent a19c2593da
commit 3009e181ab
  1. 2
      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;

Loading…
Cancel
Save