[all-commits] [llvm/llvm-project] 033835: [llvm-c] Add missing nullptr check in LLVMGetFirst...
Maxime Arthaud via All-commits
all-commits at lists.llvm.org
Sun Oct 5 01:01:40 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0338350ccb506020529259427ec1c66ca6569749
https://github.com/llvm/llvm-project/commit/0338350ccb506020529259427ec1c66ca6569749
Author: Maxime Arthaud <maxime at arthaud.me>
Date: 2025-10-05 (Sun, 05 Oct 2025)
Changed paths:
M llvm/lib/IR/Core.cpp
M llvm/tools/llvm-c-test/debuginfo.c
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list