[llvm-commits] [llvm] r109402 - /llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp
Dan Gohman
gohman at apple.com
Mon Jul 26 10:38:15 PDT 2010
Author: djg
Date: Mon Jul 26 12:38:15 2010
New Revision: 109402
URL: http://llvm.org/viewvc/llvm-project?rev=109402&view=rev
Log:
A block dominates itself, by definition.
Modified:
llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp
Modified: llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp?rev=109402&r1=109401&r2=109402&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp Mon Jul 26 12:38:15 2010
@@ -338,7 +338,7 @@
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;
}
More information about the llvm-commits
mailing list