Skip to content

Commit eb50bb2

Browse files
committed
llvm-wrapper: adapt for LLVM 19 API change
No functional changes intended. The instrprof_mcdc_condbitmap_update intrinsic was dropped in LLVM 19: * llvm/llvm-project@85a7bba
1 parent fd7eefc commit eb50bb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1576,11 +1576,11 @@ extern "C" LLVMValueRef LLVMRustGetInstrProfMCDCTVBitmapUpdateIntrinsic(LLVMModu
15761576
}
15771577

15781578
extern "C" LLVMValueRef LLVMRustGetInstrProfMCDCCondBitmapIntrinsic(LLVMModuleRef M) {
1579-
#if LLVM_VERSION_GE(18, 0)
1579+
#if LLVM_VERSION_GE(18, 0) && LLVM_VERSION_LT(19, 0)
15801580
return wrap(llvm::Intrinsic::getDeclaration(
15811581
unwrap(M), llvm::Intrinsic::instrprof_mcdc_condbitmap_update));
15821582
#else
1583-
report_fatal_error("LLVM 18.0 is required for mcdc intrinsic functions");
1583+
report_fatal_error("The instrprof_mcdc_condbitmap_update only exists in LLVM 18");
15841584
#endif
15851585
}
15861586

0 commit comments

Comments
 (0)