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