Skip to content

Commit

Permalink
llvm-16: Don't initialize removed legacy passes
Browse files Browse the repository at this point in the history
LLVM removed initialization for legacy passes:
https://reviews.llvm.org/D136615
  • Loading branch information
maurer committed Oct 25, 2022
1 parent bed4ad6 commit 6ea75ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ extern "C" void LLVMInitializePasses() {
initializeAnalysis(Registry);
initializeTransformUtils(Registry);
initializeInstCombine(Registry);
#if LLVM_VERSION_LT(16, 0)
initializeInstrumentation(Registry);
#endif
initializeTarget(Registry);
}

Expand Down

0 comments on commit 6ea75ae

Please sign in to comment.