mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
paramter ownership is not important for codegen
This commit is contained in:
parent
78000b3f19
commit
4b31c77b37
1 changed files with 1 additions and 7 deletions
|
@ -9,7 +9,6 @@ use roc_collections::all::{MutMap, MutSet};
|
|||
use roc_error_macros::internal_error;
|
||||
use roc_module::symbol::Symbol;
|
||||
use roc_mono::{
|
||||
borrow::Ownership,
|
||||
ir::{JoinPointId, Param},
|
||||
layout::{
|
||||
Builtin, InLayout, Layout, LayoutInterner, STLayoutInterner, TagIdIntType, UnionLayout,
|
||||
|
@ -1083,15 +1082,10 @@ impl<
|
|||
param_storage.reserve(params.len());
|
||||
for Param {
|
||||
symbol,
|
||||
ownership,
|
||||
ownership: _,
|
||||
layout,
|
||||
} in params
|
||||
{
|
||||
if *ownership == Ownership::Borrowed {
|
||||
// These probably need to be passed by pointer/reference?
|
||||
// Otherwise, we probably need to copy back to the param at the end of the joinpoint.
|
||||
todo!("joinpoints with borrowed parameters");
|
||||
}
|
||||
// Claim a location for every join point parameter to be loaded at.
|
||||
// Put everything on the stack for simplicity.
|
||||
match *layout {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue