From 75a48a001fe396f7ad89f26417552d3de28cbf62 Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 9 Apr 1999 08:18:06 +0000 Subject: [PATCH] preds is array instead of hash git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@554 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/obfuscator/SimpleAnalyzer.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/jode/jode/obfuscator/SimpleAnalyzer.java b/jode/jode/obfuscator/SimpleAnalyzer.java index a535ee9..9e5a10b 100644 --- a/jode/jode/obfuscator/SimpleAnalyzer.java +++ b/jode/jode/obfuscator/SimpleAnalyzer.java @@ -102,14 +102,9 @@ public class SimpleAnalyzer implements CodeAnalyzer, Opcodes { stacksize += Type.tType(ref.getType()).stackSize(); if (stacksize == 3) { /* Add a pop instruction after this opcode. */ - Instruction second = new Instruction(bytecode); - second.addr = instr.addr+1; + Instruction second = instr.appendInstruction(); second.length = 1; second.opcode = Instruction.opc_pop; - second.nextByAddr = instr.nextByAddr; - instr.nextByAddr = second; - second.nextByAddr.preds.removeElement(instr); - second.nextByAddr.preds.addElement(second); stacksize--; } instr.objData = null;