Fix missing return in optimization_applies()
This commit is contained in:
parent
24bfdc98e9
commit
e16d6a6c64
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue