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:
parent
52d608b560
commit
0b3a47900e
4 changed files with 36 additions and 29 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue