check then and else part don't need operands

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@536 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 531893a306
commit 5858df67cd
  1. 4
      jode/jode/flow/CreateIfThenElseOperator.java

@ -211,10 +211,10 @@ public class CreateIfThenElseOperator {
thenBlock = (InstructionBlock) ifBlock.thenBlock; thenBlock = (InstructionBlock) ifBlock.thenBlock;
e[1] = thenBlock.getInstruction(); e[1] = thenBlock.getInstruction();
if (e[1].isVoid()) if (e[1].isVoid() || e[1].getOperandCount() > 0)
return false; return false;
e[2] = ic.getInstruction(); e[2] = ic.getInstruction();
if (e[2].isVoid()) if (e[2].isVoid() || e[2].getOperandCount() > 0)
return false; return false;
e[0] = ifBlock.cond; e[0] = ifBlock.cond;

Loading…
Cancel
Save