Skip to content

Commit

Permalink
Fix missing return in optimization_applies()
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleywiser committed Jul 3, 2020
1 parent 24bfdc9 commit e16d6a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_mir/transform/simplify_try.rs
Expand Up @@ -302,6 +302,7 @@ fn optimization_applies<'tcx>(
// Verify the assigment chain consists of the form b = a; c = b; d = c; etc...
if opt_info.field_tmp_assignments.is_empty() {
trace!("NO: no assignments found");
return false;
}
let mut last_assigned_to = opt_info.field_tmp_assignments[0].1;
let source_local = last_assigned_to;
Expand Down

0 comments on commit e16d6a6

Please sign in to comment.