Skip to content

Commit 22bc8a0

Browse files
committed
Add back cache invalidation to basic_blocks_and_local_decls_mut
1 parent 52cc85f commit 22bc8a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc/mir/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl<'tcx> Body<'tcx> {
203203

204204
#[inline]
205205
pub fn basic_blocks_mut(&mut self) -> &mut IndexVec<BasicBlock, BasicBlockData<'tcx>> {
206-
debug!("Clearing predecessors cache at: {:?}", self.span.data());
206+
debug!("bbm: Clearing predecessors cache for body at: {:?}", self.span.data());
207207
self.predecessors_cache = None;
208208
&mut self.basic_blocks
209209
}
@@ -212,6 +212,8 @@ impl<'tcx> Body<'tcx> {
212212
pub fn basic_blocks_and_local_decls_mut(
213213
&mut self,
214214
) -> (&mut IndexVec<BasicBlock, BasicBlockData<'tcx>>, &mut LocalDecls<'tcx>) {
215+
debug!("bbaldm: Clearing predecessors cache for body at: {:?}", self.span.data());
216+
self.predecessors_cache = None;
215217
(&mut self.basic_blocks, &mut self.local_decls)
216218
}
217219

0 commit comments

Comments
 (0)