Re: pgsql: Track LLVM 15 changes. - Mailing list pgsql-committers

From Thomas Munro
Subject Re: pgsql: Track LLVM 15 changes.
Date
Msg-id CA+hUKG+p=faBQR2PSAqWoWa+_tJdKPT0wjZPQe7XcDEttUCgdQ@mail.gmail.com
Whole thread Raw
In response to Re: pgsql: Track LLVM 15 changes.  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pgsql: Track LLVM 15 changes.  (Andres Freund <andres@anarazel.de>)
Re: pgsql: Track LLVM 15 changes.  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-committers
On Wed, Feb 16, 2022 at 7:34 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Although seawasp isn't actually failing at the moment, it's emitting
> a boatload of deprecation warnings, eg
>
> In file included from llvmjit_deform.c:27:
> ../../../../src/include/jit/llvmjit_emit.h:112:23: warning: 'LLVMBuildStructGEP' is deprecated: Use
LLVMBuildStructGEP2instead to support opaque pointers [-Wdeprecated-declarations]
 
>         LLVMValueRef v_ptr = LLVMBuildStructGEP(b, v, idx, "");
>                              ^
> /home/fabien/clgtk/include/llvm-c/Core.h:3908:1: note: 'LLVMBuildStructGEP' has been explicitly marked deprecated
here
> LLVM_ATTRIBUTE_C_DEPRECATED(
> ^
>
> Is that on anyone's radar to clean up?

Yeah I mentioned this problem in the other thread.  I got as far as
finding this write-up:

https://llvm.org/docs/OpaquePointers.html

I haven't yet tried to work out what we really need to do, but I'm
planning to try.  Possibly requires a bit more book keeping on our
part, since eg LLVMGetElementType() is going away.



pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: Track LLVM 15 changes.
Next
From: Andres Freund
Date:
Subject: pgsql: docs: Work around bug in the docbook xsl stylesheets.