Skip to content

Commit 5762031

Browse files
committed
PassWrapper: adapt for llvm/llvm-project@b01e2a8
A boolean turned into an enum. None matches the old behavior of false, so we pass that. @rustbot label: +llvm-main
1 parent a0d98ff commit 5762031

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,11 @@ extern "C" LLVMRustResult LLVMRustOptimize(
829829
[](ModulePassManager &MPM, OptimizationLevel Level) {
830830
MPM.addPass(LowerTypeTestsPass(/*ExportSummary=*/nullptr,
831831
/*ImportSummary=*/nullptr,
832+
#if LLVM_VERSION_GE(20, 0)
833+
/*DropTypeTests=*/llvm::lowertypetests::DropTestKind::None));
834+
#else
832835
/*DropTypeTests=*/false));
836+
#endif
833837
});
834838
}
835839

0 commit comments

Comments
 (0)