Skip to content

Commit 758a99f

Browse files
Rollup merge of rust-lang#103549 - maurer:llvm-main, r=cuviper
llvm-16: Don't initialize removed legacy passes LLVM removed initialization for legacy passes: https://reviews.llvm.org/D136615
2 parents c5b04de + 6ea75ae commit 758a99f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ extern "C" void LLVMInitializePasses() {
6969
initializeAnalysis(Registry);
7070
initializeTransformUtils(Registry);
7171
initializeInstCombine(Registry);
72+
#if LLVM_VERSION_LT(16, 0)
7273
initializeInstrumentation(Registry);
74+
#endif
7375
initializeTarget(Registry);
7476
}
7577

0 commit comments

Comments
 (0)