about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Daniel Faria <Nashenas88@users.noreply.github.com>2019-10-04 11:46:01 -0400
committerPaul Daniel Faria <Nashenas88@users.noreply.github.com>2019-12-02 08:30:30 -0500
commit22bc8a01c19b88ecd0b60081322f4ec60032f78f (patch)
treeaf799b09f5c702d34ad2a4a44dd1a75688bf935f /src
parent52cc85f0084d335e67765e385b9a4c35cda87a48 (diff)
downloadrust-22bc8a01c19b88ecd0b60081322f4ec60032f78f.tar.gz
rust-22bc8a01c19b88ecd0b60081322f4ec60032f78f.zip
Add back cache invalidation to basic_blocks_and_local_decls_mut
Diffstat (limited to 'src')
-rw-r--r--src/librustc/mir/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc/mir/mod.rs b/src/librustc/mir/mod.rs
index 940f35cf498..ea9de2fdae8 100644
--- a/src/librustc/mir/mod.rs
+++ b/src/librustc/mir/mod.rs
@@ -203,7 +203,7 @@ impl<'tcx> Body<'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 @@ impl<'tcx> Body<'tcx> {
     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)
     }