Compare commits
2 Commits
11b3ecba2e
...
f5d2ecf549
| Author | SHA1 | Date | |
|---|---|---|---|
| f5d2ecf549 | |||
| eee6f30f94 |
@@ -321,6 +321,12 @@ static set<SAPFOR::BasicBlock*> analyzeLoop(LoopGraph* loop, const set<SAPFOR::B
|
||||
}
|
||||
}
|
||||
|
||||
if (currentLoop.empty()) // can't find loop IR - loop unreachable!
|
||||
{
|
||||
__spf_print(1, "Unreachable loop on %s:%d\n", current_file->filename(), loop_operator->lineNumber());
|
||||
return currentLoop;
|
||||
}
|
||||
|
||||
if (!head_block)
|
||||
printInternalError(convertFileName(__FILE__).c_str(), __LINE__);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user