Dear Sparse Maintainers, I am copying the bug report[1] to the mailing list as per the email below. Building sparse-llvm against LLVM 15 results in test failures due to the segmentation faults[2]. Would it be possible to consider an attached patch to migrate the sparse-llvm source code to the opaque pointers [3] at some point? Best Regards, Vladimir. [1] https://bugzilla.kernel.org/show_bug.cgi?id=217153 [2] https://launchpadlibrarian.net/654787464/sparse_0.6.4-3_amd64-2023-03-06T19%3A31%3A07Z.build [3] https://llvm.org/docs/OpaquePointers.html On Wed, May 3, 2023 at 2:54 PM Dan Carpenter wrote: > > Hi Gleb, > > I don't maintain Sparse. > > I'm afraid you're going to have to send this as a patch to the Sparse > mailing list. They don't do git pulls. > > linux-sparse@vger.kernel.org > > The documentation for how to send code to Sparse seems to be bad > because I'm seeing now that Vladimir Petko filed a bugzilla to get > their LLVM code merged... Let me add him to the CC list. > > regards, > dan carpenter > > On Wed, May 03, 2023 at 05:40:12AM -0700, Gleb Chesnokov wrote: > > This patch updates sparse-llvm to use the newer LLVM API functions, replacing the deprecated functions with their updated counterparts: > > > > - Replace LLVMConstGEP with LLVMConstGEP2 > > - Replace LLVMBuildInBoundsGEP with LLVMBuildInBoundsGEP2 > > - Replace LLVMBuildLoad with LLVMBuildLoad2 > > - Replace LLVMBuildCall with LLVMBuildCall2 > > > > The patch also ensures that the correct element types are passed to the new functions as required. > > You can view, comment on, or merge this pull request online at: > > > > https://github.com/error27/smatch/pull/6 > > > > -- Commit Summary -- > > > > * sparse-llvm: Update function calls to use LLVM API changes > > > > -- File Changes -- > > > > M sparse-llvm.c (16) > > > > -- Patch Links -- > > > > https://github.com/error27/smatch/pull/6.patch > > https://github.com/error27/smatch/pull/6.diff > > > > -- > > Reply to this email directly or view it on GitHub: > > https://github.com/error27/smatch/pull/6 > > You are receiving this because you are subscribed to this thread. > > > > Message ID: <error27/smatch/pull/6@github.com>