mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
free or reuse unconditionally when value is unique
This commit is contained in:
parent
e3ab023f62
commit
fc3004da58
21 changed files with 381 additions and 69 deletions
|
@ -141,6 +141,7 @@ impl<'a> CodeGenHelp<'a> {
|
|||
let jp_decref = JoinPointId(self.create_symbol(ident_ids, "jp_decref"));
|
||||
HelperOp::DecRef(jp_decref)
|
||||
}
|
||||
ModifyRc::Free(_) => unreachable!("free should be handled by the backend directly"),
|
||||
};
|
||||
|
||||
let mut ctx = Context {
|
||||
|
|
|
@ -118,6 +118,9 @@ pub fn refcount_stmt<'a>(
|
|||
},
|
||||
}
|
||||
}
|
||||
ModifyRc::Free(_) => {
|
||||
unreachable!("free should be handled by the backend directly")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue