move InitMask to its own module
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user