From a1fecc9c26a16859cd20b01758f852a868d41355 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 18 Nov 2005 07:27:53 +0000 Subject: [PATCH] This requires proper dominance git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24408 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Dominators.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index 04fef95552c..1d7553c2b3b 100644 --- a/lib/VMCore/Dominators.cpp +++ b/lib/VMCore/Dominators.cpp @@ -452,7 +452,7 @@ DominanceFrontier::calculate(const DominatorTree &DT, DomSetType::const_iterator CDFI = ChildDF.begin(), CDFE = ChildDF.end(); for (; CDFI != CDFE; ++CDFI) { - if (!Node->dominates(DT[*CDFI])) + if (!Node->properlyDominates(DT[*CDFI])) S.insert(*CDFI); } }