mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Fixed drop specialization for join point bodies
This commit is contained in:
parent
0e35e33f85
commit
4579d61eb4
1 changed files with 4 additions and 0 deletions
|
@ -671,6 +671,10 @@ fn specialize_drops_stmt<'a, 'i>(
|
|||
// Meaning we can pass the incremented_symbols from the remainder to the body.
|
||||
(Some(jump_info), None) if !jump_info.is_empty() => {
|
||||
// Update body with incremented symbols from remainder
|
||||
let mut body_environment = environment.clone();
|
||||
for param in parameters.iter() {
|
||||
body_environment.add_symbol_layout(param.symbol, param.layout);
|
||||
}
|
||||
body_environment.incremented_symbols = jump_info.clone();
|
||||
|
||||
let newer_body = specialize_drops_stmt(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue