Commit 25b4376
[BOLT][DWARF] Fix invalid address ranges (llvm#71474)
When NOP instructions are removed by BOLT and a DWARF address range
falls past the removed instructions, it may lead to invalid DWARF ranges
in the output binary. E.g. the range may fall outside of the basic block
boundaries.
This fix makes sure the modified range fits within the containing basic
block. A proper fix requires tracking instructions within the block and
will come in a different PR.1 parent e2a67be commit 25b4376
File tree
2 files changed
+394
-1
lines changed- bolt
- lib/Core
- test/X86
2 files changed
+394
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4306 | 4306 | | |
4307 | 4307 | | |
4308 | 4308 | | |
4309 | | - | |
| 4309 | + | |
4310 | 4310 | | |
4311 | 4311 | | |
4312 | 4312 | | |
| |||
0 commit comments