mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
Add support for unreachable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17056 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -40,8 +40,7 @@ bool PostDominatorSet::runOnFunction(Function &F) {
|
||||
for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I) {
|
||||
Doms[I]; // Initialize to empty
|
||||
|
||||
if (isa<ReturnInst>(I->getTerminator()) ||
|
||||
isa<UnwindInst>(I->getTerminator()))
|
||||
if (succ_begin(I) == succ_end(I))
|
||||
Roots.push_back(I);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user