We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd7eefc commit eb50bb2Copy full SHA for eb50bb2
compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
@@ -1576,11 +1576,11 @@ extern "C" LLVMValueRef LLVMRustGetInstrProfMCDCTVBitmapUpdateIntrinsic(LLVMModu
1576
}
1577
1578
extern "C" LLVMValueRef LLVMRustGetInstrProfMCDCCondBitmapIntrinsic(LLVMModuleRef M) {
1579
-#if LLVM_VERSION_GE(18, 0)
+#if LLVM_VERSION_GE(18, 0) && LLVM_VERSION_LT(19, 0)
1580
return wrap(llvm::Intrinsic::getDeclaration(
1581
unwrap(M), llvm::Intrinsic::instrprof_mcdc_condbitmap_update));
1582
#else
1583
- 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");
1584
#endif
1585
1586
0 commit comments