Auto merge of #132419 - durin42:llvm-20-type-test-thing, r=cuviper

PassWrapper: adapt for llvm/llvm-project@b01e2a8b56

A boolean turned into an enum. None matches the old behavior of false, so we pass that.

`@rustbot` label: +llvm-main
This commit is contained in:
bors 2024-11-03 08:08:00 +00:00
commit db034cee00

View File

@ -825,9 +825,9 @@ extern "C" LLVMRustResult LLVMRustOptimize(
!NoPrepopulatePasses) { !NoPrepopulatePasses) {
PipelineStartEPCallbacks.push_back( PipelineStartEPCallbacks.push_back(
[](ModulePassManager &MPM, OptimizationLevel Level) { [](ModulePassManager &MPM, OptimizationLevel Level) {
MPM.addPass(LowerTypeTestsPass(/*ExportSummary=*/nullptr, MPM.addPass(LowerTypeTestsPass(
/*ImportSummary=*/nullptr, /*ExportSummary=*/nullptr,
/*DropTypeTests=*/false)); /*ImportSummary=*/nullptr));
}); });
} }