jit: fix build with LLVM-21
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 15 Sep 2025 06:13:21 +0000 (08:13 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 15 Sep 2025 06:31:36 +0000 (08:31 +0200)
commitc11ac811a30db4159543f8399f3c0b723369fa20
treee459aba3e38ad657dd748103131f4b2e44f9de86
parent8309f3f86da8103f53193b218cabe4b904550b4a
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
src/backend/jit/llvm/llvmjit_inline.cpp