Skip to content

Commit a38b833

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 1307bc3 commit a38b833

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/jit/llvm/llvmjit.c

+3
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)