From 5858df67cd66d9c10a2c8ee34a5dc3516cfe1f43 Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 9 Apr 1999 08:06:11 +0000 Subject: [PATCH] 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 --- jode/jode/flow/CreateIfThenElseOperator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jode/jode/flow/CreateIfThenElseOperator.java b/jode/jode/flow/CreateIfThenElseOperator.java index b2bcc35..f517c3d 100644 --- a/jode/jode/flow/CreateIfThenElseOperator.java +++ b/jode/jode/flow/CreateIfThenElseOperator.java @@ -211,10 +211,10 @@ public class CreateIfThenElseOperator { thenBlock = (InstructionBlock) ifBlock.thenBlock; e[1] = thenBlock.getInstruction(); - if (e[1].isVoid()) + if (e[1].isVoid() || e[1].getOperandCount() > 0) return false; e[2] = ic.getInstruction(); - if (e[2].isVoid()) + if (e[2].isVoid() || e[2].getOperandCount() > 0) return false; e[0] = ifBlock.cond;