Skip to content

Commit 9ed12f8

Browse files
authored
Rollup merge of #118866 - krasimirgg:llvm-18-ref, r=durin42
llvm-wrapper: adapt for LLVM API change LLVM commit llvm/llvm-project@f09cf34 (old) moved some functions to a different header. It looks we were getting it transitively in PassWrapper, and something in LLVM recently removed it from the set of transitively available headers, so include it directly: https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/24416#018c5de6-b9c9-4b22-9473-6070d99dcfa7/233-537 r? `@nikic`
2 parents 04c77a5 + 46a8015 commit 9ed12f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: 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)