From: Andres Freund Date: Mon, 23 Jul 2018 04:05:06 +0000 (-0700) Subject: LLVMJIT: Fix LLVM build for LLVM > 7. X-Git-Tag: REL_11_BETA3~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9820f5c41edfd17abc4faab80e54bbd933817d01;p=thirdparty%2Fpostgresql.git LLVMJIT: Fix LLVM build for LLVM > 7. The location of LLVMAddPromoteMemoryToRegisterPass moved. Author: Andres Freund Backpatch: 11, where LLVM based JIT support was added. --- diff --git a/src/backend/jit/llvm/llvmjit.c b/src/backend/jit/llvm/llvmjit.c index 5d0cdab1fc6..955c9667139 100644 --- a/src/backend/jit/llvm/llvmjit.c +++ b/src/backend/jit/llvm/llvmjit.c @@ -34,6 +34,9 @@ #include #include #include +#if LLVM_VERSION_MAJOR > 6 +#include +#endif /* Handle of a module emitted via ORC JIT */