Re: [PATCH] jit: fix build with LLVM-21

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: Holger Hoffstätte <holger@applied-asynchrony.com>, pgsql-hackers@postgresql.org
Date: 2025-09-15T06:35:00Z
Lists: pgsql-hackers
On 12.09.25 09:47, Holger Hoffstätte wrote:
>>  As a small style request, I would flip the conditional around so
>> that the new code appears first.  I see that we don't do this very
>> consistently in the existing code, but maybe we can start a new
>> trend. ;-)
> I knew this would come up since I pondered the same thing :D
> As you said, the existing code is not consistent, but I can switch this
> to let the new code appear first, if you prefer.
> A new patch is attached.

I have committed this one.  For the remaining issue on arm, let's wait 
for some additional reviews.




Commits

  1. jit: Adjust AArch64-only code for LLVM 21.

  2. jit: fix build with LLVM-21

  3. Monkey-patch LLVM code to fix ARM relocation bug.