We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0d98ff commit 052ca60Copy full SHA for 052ca60
compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
@@ -827,9 +827,14 @@ extern "C" LLVMRustResult LLVMRustOptimize(
827
!NoPrepopulatePasses) {
828
PipelineStartEPCallbacks.push_back(
829
[](ModulePassManager &MPM, OptimizationLevel Level) {
830
- MPM.addPass(LowerTypeTestsPass(/*ExportSummary=*/nullptr,
831
- /*ImportSummary=*/nullptr,
832
- /*DropTypeTests=*/false));
+ MPM.addPass(LowerTypeTestsPass(
+ /*ExportSummary=*/nullptr,
+ /*ImportSummary=*/nullptr,
833
+#if LLVM_VERSION_GE(20, 0)
834
+ /*DropTypeTests=*/llvm::lowertypetests::DropTestKind::None));
835
+#else
836
+ /*DropTypeTests=*/false));
837
+#endif
838
});
839
}
840
0 commit comments