Skip to content

Commit 23e5e91

Browse files
committed
Fix C++ code compilation on LLVM 4.0
1 parent 68af05e commit 23e5e91

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/jitlayers.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ namespace llvm {
4343
extern Pass *createLowerSimdLoopPass();
4444
}
4545

46-
#include <llvm/Bitcode/ReaderWriter.h>
46+
#if JL_LLVM_VERSION >= 40000
47+
# include <llvm/Bitcode/BitcodeWriter.h>
48+
#else
49+
# include <llvm/Bitcode/ReaderWriter.h>
50+
#endif
4751
#if JL_LLVM_VERSION >= 30500
4852
#include <llvm/Bitcode/BitcodeWriterPass.h>
4953
#endif

0 commit comments

Comments
 (0)