coverage: Emit MC/DC intrinsics using the normal helper method

This commit is contained in:
Zalathar
2024-10-25 13:25:19 +11:00
parent 4923e856be
commit b3d65852c3
5 changed files with 14 additions and 77 deletions

View File

@@ -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);
}
}
}