1
Fork 0

Fix missing return in optimization_applies()

This commit is contained in:
Wesley Wiser 2020-06-21 19:35:16 -04:00
parent 24bfdc98e9
commit e16d6a6c64

View file

@ -302,6 +302,7 @@ fn optimization_applies<'tcx>(
// Verify the assigment chain consists of the form b = a; c = b; d = c; etc... // Verify the assigment chain consists of the form b = a; c = b; d = c; etc...
if opt_info.field_tmp_assignments.is_empty() { if opt_info.field_tmp_assignments.is_empty() {
trace!("NO: no assignments found"); trace!("NO: no assignments found");
return false;
} }
let mut last_assigned_to = opt_info.field_tmp_assignments[0].1; let mut last_assigned_to = opt_info.field_tmp_assignments[0].1;
let source_local = last_assigned_to; let source_local = last_assigned_to;