about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-05-29 20:12:33 +0200
committerGitHub <noreply@github.com>2024-05-29 20:12:33 +0200
commit9a61146765b9979d744f21b0ba0a215ecdb06364 (patch)
tree8e0f02476ae7e6e8c356f9c1cc4a8b154457fc76 /compiler/rustc_codegen_llvm/src/errors.rs
parenta7a2fa51f1603c457daf44480fcade778b532abb (diff)
parent34a1828feab6bc634e629849ad73db7042e5c8a5 (diff)
downloadrust-9a61146765b9979d744f21b0ba0a215ecdb06364.tar.gz
rust-9a61146765b9979d744f21b0ba0a215ecdb06364.zip
Rollup merge of #125700 - Zalathar:limit-overflow, r=nnethercote
coverage: Avoid overflow when the MC/DC condition limit is exceeded

Fix for the test failure seen in https://github.com/rust-lang/rust/pull/124571#issuecomment-2099620869.

If we perform this subtraction first, it can sometimes overflow to -1 before the addition can bring its value back to 0.

That behaviour seems to be benign, but it nevertheless causes test failures in compiler configurations that check for overflow.

``@rustbot`` label +A-code-coverage
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions