1
Fork 0

coverage: Set up MC/DC bitmaps without additional unsafe code

Because this now always takes place at the start of the function, we can just
use the normal `alloca` method and then initialize each bitmap immediately.

This patch also moves bitmap setup out of the `mcdc_parameters` method, because
there is no longer any particular reason for it to be there.
This commit is contained in:
Zalathar 2024-04-30 17:45:40 +10:00
parent 52d608b560
commit 0b3a47900e
4 changed files with 36 additions and 29 deletions

View file

@ -21,6 +21,8 @@ use rustc_macros::{Decodable_Generic, Encodable_Generic};
use std::iter::Step;
mod layout;
#[cfg(test)]
mod tests;
pub use layout::LayoutCalculator;