diff options
| author | Jubilee <workingjubilee@gmail.com> | 2024-10-24 23:23:56 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-24 23:23:56 -0700 |
| commit | 7f93af1a1ea4b8532750a56daacb877cc96d26ad (patch) | |
| tree | 1eccc12b6948795871ffcb98ee230ac99a82d508 /compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs | |
| parent | 3c6d34f4c41afa1481a25559f3f600010494078a (diff) | |
| parent | 8f075145200aef04b36f2e2239f09b796c6ac8b8 (diff) | |
| download | rust-7f93af1a1ea4b8532750a56daacb877cc96d26ad.tar.gz rust-7f93af1a1ea4b8532750a56daacb877cc96d26ad.zip | |
Rollup merge of #132125 - Zalathar:coverage-intrinsics, r=jieyouxu
coverage: Emit LLVM intrinsics using the normal helper method Codegen already has convenient ways to declare and emit LLVM intrinsics, so there's no need for coverage instrumentation to jump through hoops to emit them manually.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs | 1 |
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); } } } |
