mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
ff0a1b8eabbdbfd1554a3b3bc1e1cd6bb91fd107
The linkOrderLess comparison function is used for sorting the children edges of a node. Before this commit, it could not handle the case of comparing an edge with itself, yielding wrong results (or assertion failure if assertions were compiled in). This commit fixes linkOrderLess to handle that case without asserting, and adds an early return for it, without requiring to inspect the edges in depth.
Description
Languages
C++
77.1%
Python
12.6%
MLIR
4.4%
CMake
1.9%
LLVM
1.4%
Other
2.5%