Skip to content

Commit

Permalink
Small style improvement in gvn.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
WaffleLapkin committed Jun 13, 2024
1 parent 0c96061 commit 10c7643
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/rustc_mir_transform/src/gvn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,7 @@ impl<'body, 'tcx> VnState<'body, 'tcx> {
let is_sized = !self.feature_unsized_locals
|| self.local_decls[local].ty.is_sized(self.tcx, self.param_env);
if is_sized {
self.rev_locals.ensure_contains_elem(value, SmallVec::new);
self.rev_locals[value].push(local);
self.rev_locals.ensure_contains_elem(value, SmallVec::new).push(local);
}
}

Expand Down

0 comments on commit 10c7643

Please sign in to comment.