Skip to content

Commit

Permalink
Unrolled build for rust-lang#127101
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#127101 - matthiaskrgr:thonk, r=compiler-errors

remove redundant match statement from dataflow const prop
  • Loading branch information
rust-timer committed Jun 29, 2024
2 parents 38d0f87 + 45efd9c commit a017e86
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 a017e86

Please sign in to comment.