diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-04-30 17:54:06 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-05-01 09:55:22 +1000 |
| commit | de972b7321a90b85cef953f659b8d6ec5a5a865f (patch) | |
| tree | e0c7a272e853407044a40e1b27b34db8968445a0 /compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs | |
| parent | 0b3a47900e995cbaaa71b951d7fd5244cf966c08 (diff) | |
| download | rust-de972b7321a90b85cef953f659b8d6ec5a5a865f.tar.gz rust-de972b7321a90b85cef953f659b8d6ec5a5a865f.zip | |
coverage: Replace `max_decision_depth` with `num_condition_bitmaps`
This clearly distinguishes individual decision-depth indices from the total number of condition bitmaps to allocate.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs b/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs index ac5ab365875..c51a7744a30 100644 --- a/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs +++ b/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs @@ -110,7 +110,7 @@ impl<'tcx> CoverageInfoBuilderMethods<'tcx> for Builder<'_, '_, 'tcx> { // Create pointers named `mcdc.addr.{i}` to stack-allocated condition bitmaps. let mut cond_bitmaps = vec![]; - for i in 0..=function_coverage_info.mcdc_max_decision_depth { + for i in 0..function_coverage_info.mcdc_num_condition_bitmaps { // MC/DC intrinsics will perform loads/stores that use the ABI default // alignment for i32, so our variable declaration should match. let align = self.tcx.data_layout.i32_align.abi; |
