[PATCH] jit: fix build with LLVM-21 - Mailing list pgsql-hackers

From Holger Hoffstätte
Subject [PATCH] jit: fix build with LLVM-21
Date
Msg-id d25e6e4a-d1b4-84d3-2f8a-6c45b975f53d@applied-asynchrony.com
Whole thread Raw
List pgsql-hackers
(please cc: me on replies)

Hello!

I tried building against LLVM-21 and noticed that a function for symbol
lookup was renamed (without semantic changes), breaking the LLVM JIT.
The following patch fixes this by adding a version guard. It applies equally
to both master and 17.6. Passes the test suite and verified on 17.6 with the
jit example from the documentation.

cheers,
Holger

Attachment

pgsql-hackers by date:

Previous
From: Junwang Zhao
Date:
Subject: Re: Reduce "Var IS [NOT] NULL" quals during constant folding
Next
From: Andrei Lepikhov
Date:
Subject: Re: Query Performance Degradation Due to Partition Scan Order – PostgreSQL v17.6