[all-commits] [llvm/llvm-project] 5134bd: [DwarfEhPrepare] Assign dummy debug location for i...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Thu Sep 1 07:36:10 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5134bd432f8c35c87f4c4dc3bb744d396adcab58
https://github.com/llvm/llvm-project/commit/5134bd432f8c35c87f4c4dc3bb744d396adcab58
Author: Nikita Popov <npopov at redhat.com>
Date: 2022-09-01 (Thu, 01 Sep 2022)
Changed paths:
M llvm/lib/CodeGen/DwarfEHPrepare.cpp
A llvm/test/CodeGen/X86/dwarf-eh-prepare-dbg.ll
Log Message:
-----------
[DwarfEhPrepare] Assign dummy debug location for inserted _Unwind_Resume calls (PR57469)
DwarfEhPrepare inserts calls to _Unwind_Resume into landing pads.
If _Unwind_Resume happens to be defined in the same module and
debug info is used, then this leads to a verifier error:
inlinable function call in a function with debug info must
have a !dbg location
call void @_Unwind_Resume(ptr %exn.obj) #0
Fix this by assigning a dummy location to the call. (As this
happens in the backend, inlining is not actually relevant here.)
Fixes https://github.com/llvm/llvm-project/issues/57469.
Differential Revision: https://reviews.llvm.org/D133095
More information about the All-commits
mailing list