llvm-project
96ab8ab3 - [SPARC] Give the leaf epilogue's stack adjustment a debug location (#235247)

Commit
37 days ago
[SPARC] Give the leaf epilogue's stack adjustment a debug location (#235247) The stack adjustment in a leaf function's epilogue was built with an empty DebugLoc, so it inherits the line of whatever precedes it and the row for the return's line starts after it. A breakpoint on that line then stops with the frame already released, and %sp-based variable locations read the wrong slots. Use the return's location, as the non-leaf restore already does. The delay slot filler currently hides this by moving the adjustment into the delay slot of the retl; it shows once that slot is not filled, see #235235. Assisted-by: Claude Code (Claude Opus 5.5)
Author
Parents
Loading