Remove early return that would likely have caused miscompilations if it ever happened
This commit is contained in:
parent
eeb10335ce
commit
7a8a048b58
1 changed files with 3 additions and 13 deletions
|
@ -154,19 +154,9 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
||||||
test: &Test<'tcx>,
|
test: &Test<'tcx>,
|
||||||
make_target_blocks: impl FnOnce(&mut Self) -> Vec<BasicBlock>,
|
make_target_blocks: impl FnOnce(&mut Self) -> Vec<BasicBlock>,
|
||||||
) {
|
) {
|
||||||
let place: Place<'tcx>;
|
let place = place_builder.into_place(self);
|
||||||
if let Ok(test_place_builder) = place_builder.try_upvars_resolved(self) {
|
let place_ty = place.ty(&self.local_decls, self.tcx);
|
||||||
place = test_place_builder.into_place(self);
|
debug!(?place, ?place_ty,);
|
||||||
} else {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
debug!(
|
|
||||||
"perform_test({:?}, {:?}: {:?}, {:?})",
|
|
||||||
block,
|
|
||||||
place,
|
|
||||||
place.ty(&self.local_decls, self.tcx),
|
|
||||||
test
|
|
||||||
);
|
|
||||||
|
|
||||||
let source_info = self.source_info(test.span);
|
let source_info = self.source_info(test.span);
|
||||||
match test.kind {
|
match test.kind {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue