diff options
author | Maxime Arthaud <maxime@arthaud.me> | 2025-10-05 10:01:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-05 08:01:19 +0000 |
commit | 0338350ccb506020529259427ec1c66ca6569749 (patch) | |
tree | 998f6c560035d6e7242ee6d39a64938ba9eb0dd3 /llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp | |
parent | e8489c162b32d9bc458a0ec779b69a23c9de478d (diff) | |
download | llvm-0338350ccb506020529259427ec1c66ca6569749.zip llvm-0338350ccb506020529259427ec1c66ca6569749.tar.gz llvm-0338350ccb506020529259427ec1c66ca6569749.tar.bz2 |
[llvm-c] Add missing nullptr check in LLVMGetFirstDbgRecord (#151101)
I'm using the LLVM C bindings through the llvm-sys rust crate, and
noticed that LLVMGetFirstDbgRecord and LLVMGetLastDbgRecord are
segfault-ing when called on instructions without debug markers. I found
out it's missing a null pointer check. This PR fixes the issue.
Diffstat (limited to 'llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions