Flood with bottom instead of top for unreachable branches
This commit is contained in:
parent
ad99d2e15d
commit
47a00d5337
@ -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);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user