Skip to content

Commit

Permalink
Rollup merge of rust-lang#103549 - maurer:llvm-main, r=cuviper
Browse files Browse the repository at this point in the history
llvm-16: Don't initialize removed legacy passes

LLVM removed initialization for legacy passes:
https://reviews.llvm.org/D136615
  • Loading branch information
compiler-errors authored Oct 25, 2022
2 parents 24a56bd + 6ea75ae commit 1114be0
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 1114be0

Please sign in to comment.