mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
right param
This commit is contained in:
parent
ec731443c4
commit
f5feec1e6c
1 changed files with 3 additions and 3 deletions
|
@ -397,11 +397,11 @@ fn insert_reset_reuse_operations_stmt<'a, 'i>(
|
||||||
}
|
}
|
||||||
Stmt::Refcounting(rc, continuation) => {
|
Stmt::Refcounting(rc, continuation) => {
|
||||||
let reuse_pair = match rc {
|
let reuse_pair = match rc {
|
||||||
ModifyRc::Inc(_, _) => {
|
ModifyRc::Inc(_, _) | ModifyRc::DecRef(_) => {
|
||||||
// We don't need to do anything for an inc.
|
// We don't need to do anything for an inc.
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
ModifyRc::Dec(symbol) | ModifyRc::DecRef(symbol) => {
|
ModifyRc::Dec(symbol) => {
|
||||||
// Get the layout of the symbol from where it is defined.
|
// Get the layout of the symbol from where it is defined.
|
||||||
let layout_option = environment.get_symbol_layout(*symbol);
|
let layout_option = environment.get_symbol_layout(*symbol);
|
||||||
|
|
||||||
|
@ -932,7 +932,7 @@ fn insert_reset_reuse_operations_stmt<'a, 'i>(
|
||||||
}
|
}
|
||||||
None => match void_pointer_layout_symbols
|
None => match void_pointer_layout_symbols
|
||||||
.iter()
|
.iter()
|
||||||
.find(|(layout, _)| layout == layout)
|
.find(|(layout, _)| layout == param_layout)
|
||||||
{
|
{
|
||||||
Some(existing_symbol) => existing_symbol.1,
|
Some(existing_symbol) => existing_symbol.1,
|
||||||
None => {
|
None => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue