mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
llvm one element tag store
This commit is contained in:
parent
b6ca5e2fb9
commit
ba69987c1a
3 changed files with 39 additions and 2 deletions
|
@ -316,14 +316,20 @@ pub fn build_expr<'a, 'ctx, 'env>(
|
|||
BasicValueEnum::StructValue(struct_val.into_struct_value())
|
||||
}
|
||||
Tag {
|
||||
tag_id, arguments, ..
|
||||
tag_id,
|
||||
arguments,
|
||||
tag_layout,
|
||||
..
|
||||
} => {
|
||||
/*
|
||||
// put the discriminant in the first slot
|
||||
let discriminant = (
|
||||
Expr::Byte(*tag_id),
|
||||
Layout::Builtin(Builtin::Byte(MutMap::default())),
|
||||
);
|
||||
let it = std::iter::once(&discriminant).chain(arguments.iter());
|
||||
*/
|
||||
let it = arguments.iter();
|
||||
|
||||
let ctx = env.context;
|
||||
let builder = env.builder;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue