Commit 5d3793d
committed
Call salvageLoadDebugInfo from splitAggregateLoad
Fixes a know issue in which load splitting drops debug info.
After splitting the load, create a new debug_value instruction for the
loaded memory location, inserting a dereference expression if needed.
This fixes debug information for -Onone debugging. Later, after fixing
optimizations, it will also be called at -O, but not on 5.9.
Fixes rdar://104700920 (At -Onone preserve debug info after splitting loads)
Issue: LLDB missing variables in certain case #622411 parent 11053dc commit 5d3793d
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
339 | 343 | | |
340 | 344 | | |
341 | 345 | | |
| |||
0 commit comments