[DwarfEhPrepare] Assign dummy debug location for more inserted _Unwind_Resume calls...
authorDan Gohman <dev@sunfishcode.online>
Thu, 22 Aug 2024 15:13:20 +0000 (08:13 -0700)
committerTobias Hieta <tobias@hieta.se>
Mon, 26 Aug 2024 07:22:33 +0000 (09:22 +0200)
commit5f744ee5c770d7332740bb6247f961e7d99ee359
treebb840e8e0af09f3440cd65ba79e0e1611ecfcb36
parentcfe8eb89cbb8b8d873579123555a5238d9ad502c
[DwarfEhPrepare] Assign dummy debug location for more inserted _Unwind_Resume calls (#105513)

Similar to the fix for #57469, ensure that the other `_Unwind_Resume`
call emitted by DwarfEHPrepare has a debug location if needed.

This fixes https://github.com/nbdd0121/unwinding/issues/34.

(cherry picked from commit e76db25832d6ac2d3a36769b26f982d9dee4b346)
llvm/lib/CodeGen/DwarfEHPrepare.cpp
llvm/test/CodeGen/AArch64/dwarf-eh-prepare-dbg.ll [new file with mode: 0644]