Flood with bottom instead of top for unreachable branches
This commit is contained in:
@@ -182,8 +182,8 @@ impl<'tcx> ValueAnalysis<'tcx> for ConstAnalysis<'tcx> {
|
|||||||
// Branch is taken. Has no effect on state.
|
// Branch is taken. Has no effect on state.
|
||||||
handled = true;
|
handled = true;
|
||||||
} else {
|
} else {
|
||||||
// Branch is not taken, we can flood everything.
|
// Branch is not taken, we can flood everything with bottom.
|
||||||
state.flood_all();
|
state.flood_all_with(FlatSet::Bottom);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user