Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
Cyrill Leutwiler
2025-04-16 15:42:09 +02:00
parent 5003f3e9ac
commit 498d68b7e6
12 changed files with 431 additions and 124 deletions
@@ -139,11 +139,11 @@ where
identifier.inner,
)
})?;
context.build_store(pointer, value.access(context)?)?;
context.build_store(pointer, value.to_value(context)?)?;
return Ok(());
}
let value = value.access(context)?;
let value = value.to_value(context)?;
let llvm_type = value.into_struct_value().get_type();
let tuple_pointer = context.build_alloca(llvm_type, "assignment_pointer");
context.build_store(tuple_pointer, value)?;