File tree 2 files changed +4
-9
lines changed
2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -231,11 +231,6 @@ impl<T: Idx> IdxSet<T> {
231
231
each_bit ( self , max_bits, f)
232
232
}
233
233
234
- /// Removes all elements from this set.
235
- pub fn reset_to_empty ( & mut self ) {
236
- for word in self . words_mut ( ) { * word = 0 ; }
237
- }
238
-
239
234
pub fn elems ( & self , universe_size : usize ) -> Elems < T > {
240
235
Elems { i : 0 , set : self , universe_size : universe_size }
241
236
}
Original file line number Diff line number Diff line change @@ -147,8 +147,8 @@ impl<BD> FlowsAtLocation for FlowAtLocation<BD>
147
147
}
148
148
149
149
fn reconstruct_statement_effect ( & mut self , loc : Location ) {
150
- self . stmt_gen . reset_to_empty ( ) ;
151
- self . stmt_kill . reset_to_empty ( ) ;
150
+ self . stmt_gen . clear ( ) ;
151
+ self . stmt_kill . clear ( ) ;
152
152
{
153
153
let mut sets = BlockSets {
154
154
on_entry : & mut self . curr_state ,
@@ -172,8 +172,8 @@ impl<BD> FlowsAtLocation for FlowAtLocation<BD>
172
172
}
173
173
174
174
fn reconstruct_terminator_effect ( & mut self , loc : Location ) {
175
- self . stmt_gen . reset_to_empty ( ) ;
176
- self . stmt_kill . reset_to_empty ( ) ;
175
+ self . stmt_gen . clear ( ) ;
176
+ self . stmt_kill . clear ( ) ;
177
177
{
178
178
let mut sets = BlockSets {
179
179
on_entry : & mut self . curr_state ,
You can’t perform that action at this time.
0 commit comments