Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

Commit

Permalink
Remove redundant flag set
Browse files Browse the repository at this point in the history
  • Loading branch information
yck1509 committed Nov 2, 2015
1 parent 9357457 commit 39f8f6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Confuser.Protections/ControlFlow/SwitchMangler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,15 @@ LinkedList<Instruction[]> 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);
Expand Down

0 comments on commit 39f8f6e

Please sign in to comment.