Simplify creation of map
This commit is contained in:
@@ -105,7 +105,7 @@ impl<'tcx> ValueAnalysis<'tcx> for ConstAnalysis<'tcx> {
|
||||
FlatSet::Top => FlatSet::Top,
|
||||
FlatSet::Elem(overflow) => {
|
||||
if overflow {
|
||||
// Overflow cannot be reliable propagated. See: https://github.com/rust-lang/rust/pull/101168#issuecomment-1288091446
|
||||
// Overflow cannot be reliably propagated. See: https://github.com/rust-lang/rust/pull/101168#issuecomment-1288091446
|
||||
FlatSet::Top
|
||||
} else {
|
||||
self.wrap_scalar(Scalar::from_bool(false), self.tcx.types.bool)
|
||||
|
||||
Reference in New Issue
Block a user