Skip to content

Commit

Permalink
Fixed drop specialization for join point bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
JTeeuwissen authored Jan 28, 2025
1 parent 0e35e33 commit 4579d61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/compiler/mono/src/drop_specialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4579d61

Please sign in to comment.