We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03e0e42 commit 85b5e5aCopy full SHA for 85b5e5a
compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
@@ -1562,11 +1562,11 @@ LLVMRustGetInstrProfMCDCTVBitmapUpdateIntrinsic(LLVMModuleRef M) {
1562
1563
extern "C" LLVMValueRef
1564
LLVMRustGetInstrProfMCDCCondBitmapIntrinsic(LLVMModuleRef M) {
1565
-#if LLVM_VERSION_GE(18, 0)
+#if LLVM_VERSION_GE(18, 0) && LLVM_VERSION_LT(19, 0)
1566
return wrap(llvm::Intrinsic::getDeclaration(
1567
unwrap(M), llvm::Intrinsic::instrprof_mcdc_condbitmap_update));
1568
#else
1569
- report_fatal_error("LLVM 18.0 is required for mcdc intrinsic functions");
+ report_fatal_error("The instrprof_mcdc_condbitmap_update only exists in LLVM 18");
1570
#endif
1571
}
1572
0 commit comments