jit: fix build with LLVM-21

Peter Eisentraut <peter@eisentraut.org>

Commit: c11ac811a30db4159543f8399f3c0b723369fa20
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2025-09-15T06:31:36Z
Releases: 18.0
jit: fix build with LLVM-21

LLVM-21 renamed llvm::GlobalValue::getGUID() to
getGUIDAssumingExternalLinkage(), so add a version guard.

Author: Holger Hoffstätte <holger@applied-asynchrony.com>
Discussion: https://www.postgresql.org/message-id/flat/d25e6e4a-d1b4-84d3-2f8a-6c45b975f53d%40applied-asynchrony.com

Files

PathChange+/−
src/backend/jit/llvm/llvmjit_inline.cpp modified +4 −0

Discussion