forked from OSchip/llvm-project
Fix a bad assertion to be correct . The root basic block can be used by PHI nodes.
llvm-svn: 1370
This commit is contained in:
parent
03946cd9b6
commit
a88403bf31
|
@ -54,7 +54,9 @@ 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!");
|
||||
assert(Root->pred_begin() == Root->pred_end() &&
|
||||
"Root node has predecessors in method!");
|
||||
|
||||
bool Changed;
|
||||
do {
|
||||
Changed = false;
|
||||
|
|
|
@ -54,7 +54,9 @@ 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!");
|
||||
assert(Root->pred_begin() == Root->pred_end() &&
|
||||
"Root node has predecessors in method!");
|
||||
|
||||
bool Changed;
|
||||
do {
|
||||
Changed = false;
|
||||
|
|
Loading…
Reference in New Issue