summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-08-18 18:39:01 +0000
committerOwen Anderson <resistor@mac.com>2010-08-18 18:39:01 +0000
commit00ac77ef886f57bd421341d717849695e5fde474 (patch)
tree7bbdc53921f091ae795dc963ac9e5e2b7c3b8a42 /include
parentc983b20661d574b7adb2675478210c03ad1d0a33 (diff)
downloadllvm-00ac77ef886f57bd421341d717849695e5fde474.tar.gz
llvm-00ac77ef886f57bd421341d717849695e5fde474.tar.bz2
llvm-00ac77ef886f57bd421341d717849695e5fde474.tar.xz
Inform LazyValueInfo whenever a block is deleted, to avoid dangling pointer issues.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111382 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/LazyValueInfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Analysis/LazyValueInfo.h b/include/llvm/Analysis/LazyValueInfo.h
index ac164c19c9..a24769288a 100644
--- a/include/llvm/Analysis/LazyValueInfo.h
+++ b/include/llvm/Analysis/LazyValueInfo.h
@@ -61,6 +61,8 @@ public:
/// PredBB to OldSucc to be from PredBB to NewSucc instead.
void threadEdge(BasicBlock *PredBB, BasicBlock *OldSucc, BasicBlock *NewSucc);
+ /// eraseBlock - Inform the analysis cache that we have erased a block.
+ void eraseBlock(BasicBlock *BB);
// Implementation boilerplate.