mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Debug assert struct layout
This commit is contained in:
parent
38d5ec374a
commit
5ce4435911
1 changed files with 4 additions and 0 deletions
|
@ -179,6 +179,10 @@ fn argument_type_from_struct_layout<'a, 'ctx>(
|
|||
layout_interner: &STLayoutInterner<'a>,
|
||||
struct_layout: InLayout<'a>,
|
||||
) -> BasicTypeEnum<'ctx> {
|
||||
debug_assert!(matches!(
|
||||
layout_interner.get_repr(struct_layout),
|
||||
LayoutRepr::Struct(_)
|
||||
));
|
||||
let stack_type = basic_type_from_layout(env, layout_interner, struct_layout);
|
||||
|
||||
if layout_interner.is_passed_by_reference(struct_layout) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue