Take stack_addr in advance for locals to avoid many duplicate instructions

This commit is contained in:
bjorn3 2019-02-04 19:44:16 +01:00
parent feec354d65
commit d0c81d259a

View File

@ -356,7 +356,8 @@ fn local_place<'a, 'tcx: 'a>(
)); ));
} }
place // Take stack_addr in advance to avoid many duplicate instructions
CPlace::Addr(place.to_addr(fx), None, layout)
}; };
let prev_place = fx.local_map.insert(local, place); let prev_place = fx.local_map.insert(local, place);