aboutsummaryrefslogtreecommitdiff
path: root/src/backend/jit/llvm/llvmjit_expr.c
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2024-01-25 15:23:04 +1300
committerThomas Munro <tmunro@postgresql.org>2024-01-25 15:42:34 +1300
commit820b5af73dcc6a5d0db6a98a62a6b859e5d107b6 (patch)
treecc46c2147142da3b000398e001ea2315ff3e298e /src/backend/jit/llvm/llvmjit_expr.c
parent729439607ad210dbb446e31754e8627d7e3f7dda (diff)
downloadpostgresql-820b5af73dcc6a5d0db6a98a62a6b859e5d107b6.tar.gz
postgresql-820b5af73dcc6a5d0db6a98a62a6b859e5d107b6.zip
jit: Require at least LLVM 10.
Remove support for older LLVM versions. The default on common software distributions will be at least LLVM 10 when PostgreSQL 17 ships. Reviewed-by: Peter Eisentraut <peter@eisentraut.org> Discussion: https://postgr.es/m/CA%2BhUKGLhNs5geZaVNj2EJ79Dx9W8fyWUU3HxcpZy55sMGcY%3DiA%40mail.gmail.com
Diffstat (limited to 'src/backend/jit/llvm/llvmjit_expr.c')
-rw-r--r--src/backend/jit/llvm/llvmjit_expr.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/backend/jit/llvm/llvmjit_expr.c b/src/backend/jit/llvm/llvmjit_expr.c
index 09994503b15..0c448422e20 100644
--- a/src/backend/jit/llvm/llvmjit_expr.c
+++ b/src/backend/jit/llvm/llvmjit_expr.c
@@ -2650,12 +2650,8 @@ create_LifetimeEnd(LLVMModuleRef mod)
LLVMTypeRef param_types[2];
LLVMContextRef lc;
- /* LLVM 5+ has a variadic pointer argument */
-#if LLVM_VERSION_MAJOR < 5
- const char *nm = "llvm.lifetime.end";
-#else
+ /* variadic pointer argument */
const char *nm = "llvm.lifetime.end.p0i8";
-#endif
fn = LLVMGetNamedFunction(mod, nm);
if (fn)