Use Vec::append
This commit is contained in:
parent
851a701f90
commit
dec8166abc
@ -124,7 +124,7 @@ pub fn simplify(mut self) {
|
||||
}
|
||||
|
||||
let data = &mut self.basic_blocks[bb];
|
||||
data.statements.extend(new_stmts.drain(..));
|
||||
data.statements.append(&mut new_stmts);
|
||||
data.terminator = Some(terminator);
|
||||
|
||||
changed |= inner_changed;
|
||||
|
Loading…
Reference in New Issue
Block a user