Skip to content

Commit 6ea75ae

Browse files
committed
llvm-16: Don't initialize removed legacy passes
LLVM removed initialization for legacy passes: https://reviews.llvm.org/D136615
1 parent bed4ad6 commit 6ea75ae

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)