diff options
author | Chris Lattner <sabre@nondot.org> | 2001-08-24 14:56:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-08-24 14:56:34 +0000 |
commit | 1b5499bbb82848ee7d5d5a9062eb97b63fd9c5c6 (patch) | |
tree | ab44383ca80161675644862fc5dff9c89204cc02 /lib/Analysis/PostDominators.cpp | |
parent | 766403276fe796150fdd2237bc8f11455a6b9a8f (diff) |
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
Diffstat (limited to 'lib/Analysis/PostDominators.cpp')
-rw-r--r-- | lib/Analysis/PostDominators.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Analysis/PostDominators.cpp b/lib/Analysis/PostDominators.cpp index 24ff439994..d349314a1a 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; |