Skip to content

Commit 00bfd70

Browse files
krasimirggnikic
authored andcommitted
Disable MC/DC tests on LLVM 19
Disable the tests and generate an error if MC/DC is used on LLVM 19. The support will be ported separately, as it is substantially different on LLVM 19, and there are no plans to support both versions.
1 parent 579ab05 commit 00bfd70

File tree

6 files changed

+6
-1
lines changed

6 files changed

+6
-1
lines changed

compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,7 @@ LLVMRustGetInstrProfMCDCTVBitmapUpdateIntrinsic(LLVMModuleRef M) {
15551555

15561556
extern "C" LLVMValueRef
15571557
LLVMRustGetInstrProfMCDCCondBitmapIntrinsic(LLVMModuleRef M) {
1558-
#if LLVM_VERSION_GE(18, 0)
1558+
#if LLVM_VERSION_GE(18, 0) && LLVM_VERSION_LT(19, 0)
15591559
return wrap(llvm::Intrinsic::getDeclaration(
15601560
unwrap(M), llvm::Intrinsic::instrprof_mcdc_condbitmap_update));
15611561
#else

tests/coverage/mcdc/condition-limit.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![feature(coverage_attribute)]
22
//@ edition: 2021
33
//@ min-llvm-version: 18
4+
//@ ignore-llvm-version: 19 - 99
45
//@ compile-flags: -Zcoverage-options=mcdc
56
//@ llvm-cov-flags: --show-branches=count --show-mcdc
67

tests/coverage/mcdc/if.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![feature(coverage_attribute)]
22
//@ edition: 2021
33
//@ min-llvm-version: 18
4+
//@ ignore-llvm-version: 19 - 99
45
//@ compile-flags: -Zcoverage-options=mcdc
56
//@ llvm-cov-flags: --show-branches=count --show-mcdc
67

tests/coverage/mcdc/inlined_expressions.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![feature(coverage_attribute)]
22
//@ edition: 2021
33
//@ min-llvm-version: 18
4+
//@ ignore-llvm-version: 19 - 99
45
//@ compile-flags: -Zcoverage-options=mcdc -Copt-level=z -Cllvm-args=--inline-threshold=0
56
//@ llvm-cov-flags: --show-branches=count --show-mcdc
67

tests/coverage/mcdc/nested_if.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![feature(coverage_attribute)]
22
//@ edition: 2021
33
//@ min-llvm-version: 18
4+
//@ ignore-llvm-version: 19 - 99
45
//@ compile-flags: -Zcoverage-options=mcdc
56
//@ llvm-cov-flags: --show-branches=count --show-mcdc
67

tests/coverage/mcdc/non_control_flow.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![feature(coverage_attribute)]
22
//@ edition: 2021
33
//@ min-llvm-version: 18
4+
//@ ignore-llvm-version: 19 - 99
45
//@ compile-flags: -Zcoverage-options=mcdc
56
//@ llvm-cov-flags: --show-branches=count --show-mcdc
67

0 commit comments

Comments
 (0)