mirror of https://github.com/icedland/iced.git
Sort the instr defs
This commit is contained in:
parent
d1b52cd6d9
commit
6cd00f6a8e
|
@ -154,6 +154,7 @@ namespace Generator.Tables {
|
|||
}
|
||||
if (defs.Count == 0)
|
||||
Error(lines.Length, "No instruction definitions found");
|
||||
defs.Sort((a, b) => a.def.Code.Value.CompareTo(b.def.Code.Value));
|
||||
|
||||
if (TryGetErrorString(out var errorMessage))
|
||||
throw new InvalidOperationException(errorMessage);
|
||||
|
|
Loading…
Reference in New Issue