diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-02-26 01:50:14 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-02-26 01:50:14 +0000 |
commit | 8c727f9200cd54adc4a1b742950e80035bc53a20 (patch) | |
tree | 2b9986ec2c0f65a797d3c6edab4632deeaec2cd7 /include | |
parent | 6fd3428afa46ace6712f0649bf4a7bd6799cc355 (diff) | |
download | external_llvm-8c727f9200cd54adc4a1b742950e80035bc53a20.zip external_llvm-8c727f9200cd54adc4a1b742950e80035bc53a20.tar.gz external_llvm-8c727f9200cd54adc4a1b742950e80035bc53a20.tar.bz2 |
Don't call dominates on unreachable instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151466 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/Dominators.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h index b539a78..5873073 100644 --- a/include/llvm/Analysis/Dominators.h +++ b/include/llvm/Analysis/Dominators.h @@ -820,7 +820,7 @@ public: DT->splitBlock(NewBB); } - bool isReachableFromEntry(const BasicBlock* A) { + bool isReachableFromEntry(const BasicBlock* A) const { return DT->isReachableFromEntry(A); } |