From 9df4a6c9d28fbc91388d7a174117f8c42b34884b Mon Sep 17 00:00:00 2001 From: de4dot Date: Thu, 20 Oct 2011 04:50:58 +0200 Subject: [PATCH] Undo dup fix --- blocks/cflow/DeadCodeRemover.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/blocks/cflow/DeadCodeRemover.cs b/blocks/cflow/DeadCodeRemover.cs index 478f8569..413665ab 100644 --- a/blocks/cflow/DeadCodeRemover.cs +++ b/blocks/cflow/DeadCodeRemover.cs @@ -377,12 +377,7 @@ namespace de4dot.blocks.cflow { } static void calculateStackUsage(Instruction instr, bool methodHasReturnValue, out int pushes, out int pops) { - if (instr.OpCode.Code == Code.Dup) { - pushes = 1; - pops = 0; - } - else - DotNetUtils.calculateStackUsage(instr, false, out pushes, out pops); + DotNetUtils.calculateStackUsage(instr, false, out pushes, out pops); } } }