about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-10-25 13:25:19 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-10-25 14:01:36 +1100
commitb3d65852c3addf4e8e6be96965ead86c2d4fb8be (patch)
tree3994f2b8c2299fd65c060c5ed536902ebfec7dc7 /compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs
parent4923e856be61bfb8faac18eaf1f2b0d8e70ea3be (diff)
downloadrust-b3d65852c3addf4e8e6be96965ead86c2d4fb8be.tar.gz
rust-b3d65852c3addf4e8e6be96965ead86c2d4fb8be.zip
coverage: Emit MC/DC intrinsics using the normal helper method
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs b/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs
index b2956945911..36b1747f2fd 100644
--- a/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs
+++ b/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs
@@ -208,6 +208,7 @@ impl<'tcx> CoverageInfoBuilderMethods<'tcx> for Builder<'_, '_, 'tcx> {
                 let hash = bx.const_u64(function_coverage_info.function_source_hash);
                 let bitmap_index = bx.const_u32(bitmap_idx);
                 bx.mcdc_tvbitmap_update(fn_name, hash, bitmap_index, cond_bitmap);
+                bx.mcdc_condbitmap_reset(cond_bitmap);
             }
         }
     }