Flood with bottom instead of top for unreachable branches

This commit is contained in:
Jannis Christopher Köhl 2022-09-01 14:22:37 +02:00
parent ad99d2e15d
commit 47a00d5337

View File

@ -182,8 +182,8 @@ impl<'tcx> ValueAnalysis<'tcx> for ConstAnalysis<'tcx> {
// Branch is taken. Has no effect on state.
handled = true;
} else {
// Branch is not taken, we can flood everything.
state.flood_all();
// Branch is not taken, we can flood everything with bottom.
state.flood_all_with(FlatSet::Bottom);
}
})
}