summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-07-26 17:38:15 +0000
committerDan Gohman <gohman@apple.com>2010-07-26 17:38:15 +0000
commitf9da3c3b8895936a568eb4fa47f013d2c1bbcd47 (patch)
treefef97b1d6dc8ddf7e5416f57b08babc336d40eae /llvm/lib/CodeGen
parent65b257c9d261ff6024da9c964084ff4d4256af1d (diff)
downloadbcm5719-llvm-f9da3c3b8895936a568eb4fa47f013d2c1bbcd47.tar.gz
bcm5719-llvm-f9da3c3b8895936a568eb4fa47f013d2c1bbcd47.zip
A block dominates itself, by definition.
llvm-svn: 109402
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/DwarfEHPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/DwarfEHPrepare.cpp b/llvm/lib/CodeGen/DwarfEHPrepare.cpp
index da2021ae1b4..425d57e60b1 100644
--- a/llvm/lib/CodeGen/DwarfEHPrepare.cpp
+++ b/llvm/lib/CodeGen/DwarfEHPrepare.cpp
@@ -338,7 +338,7 @@ bool DwarfEHPrepare::HandleURoRInvokes() {
for (SmallPtrSet<InvokeInst*, 32>::iterator
UI = URoRInvokes.begin(), UE = URoRInvokes.end(); UI != UE; ++UI) {
const BasicBlock *URoRBB = (*UI)->getParent();
- if (SelBB == URoRBB || DT->dominates(SelBB, URoRBB)) {
+ if (DT->dominates(SelBB, URoRBB)) {
SelsToConvert.insert(*SI);
break;
}
OpenPOWER on IntegriCloud