From 236e48634d94c0e96671bb9948d24a26b20ec66d Mon Sep 17 00:00:00 2001 From: Yichao Yu Date: Wed, 21 Jun 2017 06:46:38 +0800 Subject: [PATCH] Fix compilation on LLVM 4.0+ Introduced by 6674011dedc76610fa3a0e70bd236762108e36e2 Similar to 23e5e911d85bd3639114180febc09e0ee0fa22be --- src/codegen.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/codegen.cpp b/src/codegen.cpp index f9c66e91bb2ac..91db513ee10b3 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -64,7 +64,11 @@ #include // for llvmcall #include // for llvmcall inlining #include // for llvmcall validation -#include +#if JL_LLVM_VERSION >= 40000 +# include +#else +# include +#endif // C API #include