mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Fix a bad assertion to be correct . The root basic block can be used by PHI nodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1370 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -54,7 +54,9 @@ cfg::DominatorSet::DominatorSet(const Method *M) : DominatorBase(M->front()) {
|
|||||||
//
|
//
|
||||||
void cfg::DominatorSet::calcForwardDominatorSet(const Method *M) {
|
void cfg::DominatorSet::calcForwardDominatorSet(const Method *M) {
|
||||||
assert(Root && M && "Can't build dominator set of null method!");
|
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;
|
bool Changed;
|
||||||
do {
|
do {
|
||||||
Changed = false;
|
Changed = false;
|
||||||
|
@@ -54,7 +54,9 @@ cfg::DominatorSet::DominatorSet(const Method *M) : DominatorBase(M->front()) {
|
|||||||
//
|
//
|
||||||
void cfg::DominatorSet::calcForwardDominatorSet(const Method *M) {
|
void cfg::DominatorSet::calcForwardDominatorSet(const Method *M) {
|
||||||
assert(Root && M && "Can't build dominator set of null method!");
|
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;
|
bool Changed;
|
||||||
do {
|
do {
|
||||||
Changed = false;
|
Changed = false;
|
||||||
|
Reference in New Issue
Block a user