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:11 +0000 (08:31 +0200)
commit282d0bdee6192f1a859ee34672ae73abf49794dc
treefd99320b9365563cd6ae7e695a150ab07b1a5f59
parent748caa9dcb686a84f239ee2cc08030d7c1efddd4
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