Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Debug info: two fixes in x64 backend.
- Sort by generated-code offset to maintain invariant and avoid gimli panic. - Fix srcloc interaction with branch peephole optimization in MachBuffer: if a srcloc range overlaps with a branch that is truncated, remove that srcloc range. These issues were found while fuzzing the new backend (bytecodealliance#2453); I suspect that they arise with the new backend because we can sink instructions (e.g. loads or extends) in more interesting ways than before, but I'm not entirely sure. Test coverage will be via the fuzz corpus once bytecodealliance#2453 lands.
- Loading branch information