mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
Add back cache invalidation to basic_blocks_and_local_decls_mut
This commit is contained in:
@@ -203,7 +203,7 @@ pub fn basic_blocks(&self) -> &IndexVec<BasicBlock, BasicBlockData<'tcx>> {
|
||||
|
||||
#[inline]
|
||||
pub fn basic_blocks_mut(&mut self) -> &mut IndexVec<BasicBlock, BasicBlockData<'tcx>> {
|
||||
debug!("Clearing predecessors cache at: {:?}", self.span.data());
|
||||
debug!("bbm: Clearing predecessors cache for body at: {:?}", self.span.data());
|
||||
self.predecessors_cache = None;
|
||||
&mut self.basic_blocks
|
||||
}
|
||||
@@ -212,6 +212,8 @@ pub fn basic_blocks_mut(&mut self) -> &mut IndexVec<BasicBlock, BasicBlockData<'
|
||||
pub fn basic_blocks_and_local_decls_mut(
|
||||
&mut self,
|
||||
) -> (&mut IndexVec<BasicBlock, BasicBlockData<'tcx>>, &mut LocalDecls<'tcx>) {
|
||||
debug!("bbaldm: Clearing predecessors cache for body at: {:?}", self.span.data());
|
||||
self.predecessors_cache = None;
|
||||
(&mut self.basic_blocks, &mut self.local_decls)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user