From 39f8f6ea7ef48864d668c6458c7895dbd98462f8 Mon Sep 17 00:00:00 2001 From: yck1509 Date: Tue, 27 Oct 2015 21:35:00 +0800 Subject: [PATCH] Remove redundant flag set --- Confuser.Protections/ControlFlow/SwitchMangler.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Confuser.Protections/ControlFlow/SwitchMangler.cs b/Confuser.Protections/ControlFlow/SwitchMangler.cs index 7c0807556..e7ebd7ae8 100644 --- a/Confuser.Protections/ControlFlow/SwitchMangler.cs +++ b/Confuser.Protections/ControlFlow/SwitchMangler.cs @@ -132,16 +132,15 @@ LinkedList SpiltStatements(InstrBlock block, Trace trace, CFConte case FlowControl.Cond_Branch: case FlowControl.Return: case FlowControl.Throw: + shouldSpilt = true; if (trace.AfterStack[instr.Offset] != 0) { if (instr.Operand is Instruction) requiredInstr.Add((Instruction)instr.Operand); else if (instr.Operand is Instruction[]) { foreach (var target in (Instruction[])instr.Operand) requiredInstr.Add(target); - shouldSpilt = false; } } - shouldSpilt = true; break; } requiredInstr.Remove(instr);