diff options
| author | Matthew Maurer <mmaurer@google.com> | 2022-10-25 15:03:21 -0700 |
|---|---|---|
| committer | Matthew Maurer <mmaurer@google.com> | 2022-10-25 15:03:21 -0700 |
| commit | 6ea75aea56ab66069b72a29335831f8395e6ee2b (patch) | |
| tree | 4e1bd9051432ac97d2a1bf446d181eb742ee349d /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | bed4ad65bf7a1cef39e3d66b3670189581b3b073 (diff) | |
| download | rust-6ea75aea56ab66069b72a29335831f8395e6ee2b.tar.gz rust-6ea75aea56ab66069b72a29335831f8395e6ee2b.zip | |
llvm-16: Don't initialize removed legacy passes
LLVM removed initialization for legacy passes: https://reviews.llvm.org/D136615
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp index 879a3b660b4..18d37d95a83 100644 --- a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp @@ -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); } |
