emitPrologue may insert stack pointer adjustment in tail call optimized functions where the callee argument stack size is bigger than the caller's. In such a case, the adjustment must be taken into account when generating CFA directives.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I have added a test to showcase the issue this diff resolves. Previously, the generated DWARF directives were erroneously using an offset of 16 instead of the correct offset of 8176.
I have also applied some linting changes suggested by clang-format.
Comment Actions
Thanks @pengfei. I don’t have commit access, can you land this patch for me? Please use “Theodoros Kasampalis kasampalis.theodoros@gmail.com” to commit the change.