Ignore prefix instrs

This commit is contained in:
de4dot 2012-01-24 02:28:21 +01:00
parent 613a97906a
commit 9831dbdcdb

View File

@ -937,6 +937,8 @@ namespace de4dot.blocks {
var instr = instructions[index++];
if (instr.OpCode.Code == Code.Nop)
continue;
if (instr.OpCode.OpCodeType == OpCodeType.Prefix)
continue;
if (instr == null || (instr.OpCode.Code != Code.Br && instr.OpCode.Code != Code.Br_S))
return instr;
instr = instr.Operand as Instruction;