//
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;
//
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;