From 1b5499bbb82848ee7d5d5a9062eb97b63fd9c5c6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 24 Aug 2001 14:56:34 +0000 Subject: Make sure noone branches to the entry node of the method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/PostDominators.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Analysis') diff --git a/lib/Analysis/PostDominators.cpp b/lib/Analysis/PostDominators.cpp index 24ff439..d349314 100644 --- a/lib/Analysis/PostDominators.cpp +++ b/lib/Analysis/PostDominators.cpp @@ -53,6 +53,7 @@ cfg::DominatorSet::DominatorSet(const Method *M) : DominatorBase(M->front()) { // void cfg::DominatorSet::calcForwardDominatorSet(const Method *M) { assert(Root && M && "Can't build dominator set of null method!"); + assert(Root->use_size() == 0 && "Root node has predecessors in method!"); bool Changed; do { Changed = false; -- cgit v1.1