aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
diff options
context:
space:
mode:
authorMaxime Arthaud <maxime@arthaud.me>2025-10-05 10:01:19 +0200
committerGitHub <noreply@github.com>2025-10-05 08:01:19 +0000
commit0338350ccb506020529259427ec1c66ca6569749 (patch)
tree998f6c560035d6e7242ee6d39a64938ba9eb0dd3 /llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
parente8489c162b32d9bc458a0ec779b69a23c9de478d (diff)
downloadllvm-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