coverage: Unused functions don't need to store CoverageIdsInfo

This commit is contained in:
Zalathar 2024-12-08 20:49:28 +11:00
parent 4d2bfece41
commit 3a35fb6938
2 changed files with 13 additions and 13 deletions

View file

@ -531,7 +531,6 @@ fn add_unused_function_coverage<'tcx>(
);
// An unused function's mappings will all be rewritten to map to zero.
let function_coverage =
FunctionCoverage::new_unused(function_coverage_info, tcx.coverage_ids_info(instance.def));
let function_coverage = FunctionCoverage::new_unused(function_coverage_info);
cx.coverage_cx().function_coverage_map.borrow_mut().insert(instance, function_coverage);
}