[PATCH] jit: fix build with LLVM-21

From: Holger Hoffstätte <holger(at)applied-asynchrony(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: [PATCH] jit: fix build with LLVM-21
Date: 2025-09-08 13:20:38
Message-ID: d25e6e4a-d1b4-84d3-2f8a-6c45b975f53d@applied-asynchrony.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
llvm21.patch text/x-patch 1.0 KB

Responses

Browse pgsql-hackers by date

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