Files
wasmtime/cranelift/codegen
Ulrich Weigand a90ab8a0cf Fix updating srclocs in truncate_last_branch
The truncate_last_branch removes an instruction that had already
been added to the buffer, and must update various bookkeeping.

However, updating the "srclocs" field is incorrect: if there is
a srclocs entry that spans both the removed branch *and some
previous instruction*, that whole srclocs entry is removed,
which makes those previous instructions now uncovered by any
srclocs record.  This can cause subsequent problems e.g. if
one of those instructions traps.

Fixed by just truncating instead of fully removing the srclocs
record in this case.
2021-06-22 13:53:47 +02:00
..
2021-06-09 14:00:13 -05:00
2021-02-18 13:01:01 +01:00
2021-06-15 22:56:10 -05:00

This crate contains the core Cranelift code generator. It translates code from an intermediate representation into executable machine code.