Reduce BitSet size used in Borrows dataflow analysis
This commit is contained in:
@@ -328,7 +328,7 @@ impl<'tcx> rustc_mir_dataflow::AnalysisDomain<'tcx> for Borrows<'_, 'tcx> {
|
|||||||
|
|
||||||
fn bottom_value(&self, _: &mir::Body<'tcx>) -> Self::Domain {
|
fn bottom_value(&self, _: &mir::Body<'tcx>) -> Self::Domain {
|
||||||
// bottom = nothing is reserved or activated yet;
|
// bottom = nothing is reserved or activated yet;
|
||||||
BitSet::new_empty(self.borrow_set.len() * 2)
|
BitSet::new_empty(self.borrow_set.len())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn initialize_start_block(&self, _: &mir::Body<'tcx>, _: &mut Self::Domain) {
|
fn initialize_start_block(&self, _: &mir::Body<'tcx>, _: &mut Self::Domain) {
|
||||||
|
|||||||
Reference in New Issue
Block a user