Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 2508d8e

Browse files
krasimirggnikic
authored andcommitted
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 39f9c47 commit 2508d8e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,11 +1557,12 @@ LLVMRustGetInstrProfMCDCTVBitmapUpdateIntrinsic(LLVMModuleRef M) {
15571557

15581558
extern "C" LLVMValueRef
15591559
LLVMRustGetInstrProfMCDCCondBitmapIntrinsic(LLVMModuleRef M) {
1560-
#if LLVM_VERSION_GE(18, 0)
1560+
#if LLVM_VERSION_GE(18, 0) && LLVM_VERSION_LT(19, 0)
15611561
return wrap(llvm::Intrinsic::getDeclaration(
15621562
unwrap(M), llvm::Intrinsic::instrprof_mcdc_condbitmap_update));
15631563
#else
1564-
report_fatal_error("LLVM 18.0 is required for mcdc intrinsic functions");
1564+
report_fatal_error(
1565+
"The instrprof_mcdc_condbitmap_update only exists in LLVM 18");
15651566
#endif
15661567
}
15671568

0 commit comments

Comments
 (0)