Browse Source

Fixed analysis for prefixed bytecodes - Closes #22

pull/37/head
David Srbecký 15 years ago
parent
commit
021b923036
  1. 4
      ICSharpCode.Decompiler/ILAst/ILAstBuilder.cs

4
ICSharpCode.Decompiler/ILAst/ILAstBuilder.cs

@ -154,11 +154,13 @@ namespace Decompiler @@ -154,11 +154,13 @@ namespace Decompiler
PushCount = inst.GetPushCount()
};
if (prefixes != null) {
instrToByteCode[prefixes[0]] = byteCode;
byteCode.Offset = prefixes[0].Offset;
byteCode.Prefixes = prefixes.ToArray();
prefixes = null;
} else {
instrToByteCode[inst] = byteCode;
}
instrToByteCode[inst] = byteCode;
body.Add(byteCode);
}
for (int i = 0; i < body.Count - 1; i++) {

Loading…
Cancel
Save