Skip to content

Commit 46a8015

Browse files
committed
1 parent 5b8bc56 commit 46a8015

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
#include "llvm/Transforms/Utils/FunctionImportUtils.h"
3838
#include "llvm/LTO/LTO.h"
3939
#include "llvm/Bitcode/BitcodeWriter.h"
40-
40+
#if LLVM_VERSION_GE(18, 0)
41+
#include "llvm/TargetParser/Host.h"
42+
#endif
4143
#include "llvm/Transforms/Instrumentation.h"
4244
#include "llvm/Transforms/Instrumentation/AddressSanitizer.h"
4345
#include "llvm/Support/TimeProfiler.h"

0 commit comments

Comments
 (0)