1
Fork 0

Small style improvement in gvn.rs

This commit is contained in:
Waffle Lapkin 2024-06-13 12:13:54 +02:00
parent 0c960618b5
commit 10c76433e8

View file

@ -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);
}
}