jit: fix build with LLVM-21
authorPeter Eisentraut <[email protected]>
Mon, 15 Sep 2025 06:13:21 +0000 (08:13 +0200)
committerPeter Eisentraut <[email protected]>
Mon, 15 Sep 2025 06:31:47 +0000 (08:31 +0200)
commit755f01ad743c09a5fcaf04df1c0e465bb48b85ed
tree2d444e38a982733787a8a795dc76e0baf7607db3
parente09adb5b9fc9dec27c7ff9e9592723d7d8098b03
jit: fix build with LLVM-21

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

Author: Holger Hoffstätte <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/d25e6e4a-d1b4-84d3-2f8a-6c45b975f53d%40applied-asynchrony.com
src/backend/jit/llvm/llvmjit_inline.cpp