diff --git a/src/debuginfo.cpp b/src/debuginfo.cpp index 56ea92040ec45..558bb83fcff71 100644 --- a/src/debuginfo.cpp +++ b/src/debuginfo.cpp @@ -29,6 +29,9 @@ #else #include #endif +#if JL_LLVM_VERSION >= 50000 +#include +#endif #include #include #if JL_LLVM_VERSION >= 30700 diff --git a/src/disasm.cpp b/src/disasm.cpp index 2e30877a5315d..766f726303fce 100644 --- a/src/disasm.cpp +++ b/src/disasm.cpp @@ -28,8 +28,13 @@ #include "llvm-version.h" #include +#if JL_LLVM_VERSION >= 50000 +#include +#include +#else #include #include +#endif #include #include #include