summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/PostDominators.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-08-24 14:56:34 +0000
committerChris Lattner <sabre@nondot.org>2001-08-24 14:56:34 +0000
commit439465583af7107a081f0ea1ff845a31975c003c (patch)
treef4b79a05e8383fdbf8b202fb2aebc9e5d413a719 /llvm/lib/Analysis/PostDominators.cpp
parentaddc6258cd7c0b17551156677b3fe1c7c78f8e2a (diff)
downloadbcm5719-llvm-439465583af7107a081f0ea1ff845a31975c003c.tar.gz
bcm5719-llvm-439465583af7107a081f0ea1ff845a31975c003c.zip
Make sure noone branches to the entry node of the method
llvm-svn: 369
Diffstat (limited to 'llvm/lib/Analysis/PostDominators.cpp')
-rw-r--r--llvm/lib/Analysis/PostDominators.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/PostDominators.cpp b/llvm/lib/Analysis/PostDominators.cpp
index 24ff4399942..d349314a1a9 100644
--- a/llvm/lib/Analysis/PostDominators.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud