Browse Source

Only check LLVM_VERSION_MAJOR >= 17 for PassBuilder inclusion

jcmdln 1 year ago
parent
commit
8fe431e53e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/llvm_backend.hpp

+ 1 - 1
src/llvm_backend.hpp

@@ -15,7 +15,7 @@
 #include <llvm-c/Object.h>
 #include <llvm-c/BitWriter.h>
 #include <llvm-c/DebugInfo.h>
-#if LLVM_VERSION_MAJOR >= 17 && (LLVM_VERSION_MINOR > 0 || (LLVM_VERSION_MINOR == 0 && LLVM_VERSION_PATCH > 0))
+#if LLVM_VERSION_MAJOR >= 17
 #include <llvm-c/Transforms/PassBuilder.h>
 #else
 #include <llvm-c/Transforms/AggressiveInstCombine.h>