mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-18 12:31:26 +00:00
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
This commit is contained in:
parent
766403276f
commit
1b5499bbb8
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user