[llvm-commits] CVS: llvm/lib/Analysis/PostDominators.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Oct 16 11:15:26 PDT 2004



Changes in directory llvm/lib/Analysis:

PostDominators.cpp updated: 1.49 -> 1.50
---
Log message:

Add support for unreachable


---
Diffs of the changes:  (+1 -2)

Index: llvm/lib/Analysis/PostDominators.cpp
diff -u llvm/lib/Analysis/PostDominators.cpp:1.49 llvm/lib/Analysis/PostDominators.cpp:1.50
--- llvm/lib/Analysis/PostDominators.cpp:1.49	Thu Oct 14 09:59:16 2004
+++ llvm/lib/Analysis/PostDominators.cpp	Sat Oct 16 13:15:15 2004
@@ -40,8 +40,7 @@
   for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I) {
     Doms[I];  // Initialize to empty
 
-    if (isa<ReturnInst>(I->getTerminator()) ||
-        isa<UnwindInst>(I->getTerminator()))
+    if (succ_begin(I) == succ_end(I))
       Roots.push_back(I);
   }
 






More information about the llvm-commits mailing list