diff --git a/src/optimize/stack2reg.rs b/src/optimize/stack2reg.rs index b1afa9ab8bb..8fa5fb13c2e 100644 --- a/src/optimize/stack2reg.rs +++ b/src/optimize/stack2reg.rs @@ -237,7 +237,7 @@ pub(super) fn optimize_function( } if users.stack_store.is_empty() && users.stack_load.is_empty() { - // FIXME make stack_slot zero sized. + opt_ctx.ctx.func.stack_slots[stack_slot.0].size = 0; } }