jit: fix build with LLVM-21

Peter Eisentraut <peter@eisentraut.org>

Commit: 755f01ad743c09a5fcaf04df1c0e465bb48b85ed
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2025-09-15T06:31:47Z
Releases: 17.7
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