Skip to content

Commit 9820f5c

Browse files
committed
LLVMJIT: Fix LLVM build for LLVM > 7.
The location of LLVMAddPromoteMemoryToRegisterPass moved. Author: Andres Freund Backpatch: 11, where LLVM based JIT support was added.
1 parent 0171ad9 commit 9820f5c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/jit/llvm/llvmjit.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
#include <llvm-c/Transforms/IPO.h>
3535
#include <llvm-c/Transforms/PassManagerBuilder.h>
3636
#include <llvm-c/Transforms/Scalar.h>
37+
#if LLVM_VERSION_MAJOR > 6
38+
#include <llvm-c/Transforms/Utils.h>
39+
#endif
3740

3841

3942
/* Handle of a module emitted via ORC JIT */

0 commit comments

Comments
 (0)