move InitMask to its own module
This commit is contained in:
parent
3477645a23
commit
c3a7ca1125
7 changed files with 582 additions and 598 deletions
|
@ -38,9 +38,7 @@ pub fn const_alloc_to_llvm<'ll>(cx: &CodegenCx<'ll, '_>, alloc: ConstAllocation<
|
|||
alloc: &'a Allocation,
|
||||
range: Range<usize>,
|
||||
) {
|
||||
let chunks = alloc
|
||||
.init_mask()
|
||||
.range_as_init_chunks(Size::from_bytes(range.start), Size::from_bytes(range.end));
|
||||
let chunks = alloc.init_mask().range_as_init_chunks(range.clone().into());
|
||||
|
||||
let chunk_to_llval = move |chunk| match chunk {
|
||||
InitChunk::Init(range) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue