jit: fix build with LLVM-21

Peter Eisentraut <peter@eisentraut.org>

Commit: 72a24bebc38f38e4862b9d89a4ce26124e4765f3
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2025-09-15T06:31:59Z
Releases: 15.15
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