Skip to content

Commit

Permalink
Rollup merge of #127101 - matthiaskrgr:thonk, r=compiler-errors
Browse files Browse the repository at this point in the history
remove redundant match statement from dataflow const prop
  • Loading branch information
matthiaskrgr committed Jun 29, 2024
2 parents 3369e83 + 45efd9c commit c1d7ff5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions compiler/rustc_mir_transform/src/dataflow_const_prop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,6 @@ impl<'tcx> ValueAnalysis<'tcx> for ConstAnalysis<'_, 'tcx> {
state.insert_value_idx(value_target, val, self.map());
}
if let Some(overflow_target) = overflow_target {
let overflow = match overflow {
FlatSet::Top => FlatSet::Top,
FlatSet::Elem(overflow) => FlatSet::Elem(overflow),
FlatSet::Bottom => FlatSet::Bottom,
};
// We have flooded `target` earlier.
state.insert_value_idx(overflow_target, overflow, self.map());
}
Expand Down

0 comments on commit c1d7ff5

Please sign in to comment.