mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Have basic_type_from_layout take LayoutRepr
This commit is contained in:
parent
555cbcc87b
commit
8495f3b085
10 changed files with 403 additions and 137 deletions
|
@ -1,7 +1,7 @@
|
|||
use inkwell::{types::BasicType, values::PointerValue};
|
||||
use roc_mono::layout::{LayoutRepr, STLayoutInterner};
|
||||
|
||||
use super::{align::LlvmAlignment, build::Env, convert::basic_type_from_layout_repr};
|
||||
use super::{align::LlvmAlignment, build::Env, convert::basic_type_from_layout};
|
||||
|
||||
pub fn build_memcpy<'a, 'ctx>(
|
||||
env: &Env<'a, 'ctx, '_>,
|
||||
|
@ -11,7 +11,7 @@ pub fn build_memcpy<'a, 'ctx>(
|
|||
source: PointerValue<'ctx>,
|
||||
) {
|
||||
let align_bytes = layout.llvm_alignment_bytes(layout_interner);
|
||||
let width = basic_type_from_layout_repr(env, layout_interner, layout)
|
||||
let width = basic_type_from_layout(env, layout_interner, layout)
|
||||
.size_of()
|
||||
.unwrap();
|
||||
if align_bytes > 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue