mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Check empty dominance frontier.
llvm-svn: 52437
This commit is contained in:
parent
c190d65454
commit
960d6ae6d1
@ -944,6 +944,9 @@ public:
|
||||
// itself is not member of NewBB's dominance frontier.
|
||||
DominanceFrontier::iterator NewDFI = find(NewBB);
|
||||
DominanceFrontier::iterator DFI = find(BB);
|
||||
// If BB was an entry block then its frontier is empty.
|
||||
if (DFI == end())
|
||||
return;
|
||||
DominanceFrontier::DomSetType BBSet = DFI->second;
|
||||
for (DominanceFrontier::DomSetType::iterator BBSetI = BBSet.begin(),
|
||||
BBSetE = BBSet.end(); BBSetI != BBSetE; ++BBSetI) {
|
||||
|
Loading…
Reference in New Issue
Block a user