summaryrefslogtreecommitdiff
path: root/lib/CodeGen/DwarfEHPrepare.cpp
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
commitce0fe5da0d69dfd332084b9f2c159c8f06f534e0 (patch)
tree8f5cf20f4775d763d899d79063b9a6ba0545973b /lib/CodeGen/DwarfEHPrepare.cpp
parentb7aa26bbdb787e1147eec07eab02d0583ddda617 (diff)
downloadllvm-ce0fe5da0d69dfd332084b9f2c159c8f06f534e0.tar.gz
llvm-ce0fe5da0d69dfd332084b9f2c159c8f06f534e0.tar.bz2
llvm-ce0fe5da0d69dfd332084b9f2c159c8f06f534e0.tar.xz
A block dominates itself, by definition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109402 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/DwarfEHPrepare.cpp')
-rw-r--r--lib/CodeGen/DwarfEHPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/DwarfEHPrepare.cpp b/lib/CodeGen/DwarfEHPrepare.cpp
index da2021ae1b..425d57e60b 100644
--- a/lib/CodeGen/DwarfEHPrepare.cpp
+++ b/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;
}