Fix for PR5373, Credit to Jakub Staszak.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89758 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Edward O'Callaghan
2009-11-24 11:51:52 +00:00
parent d7f0810c93
commit de8d3b73c8
2 changed files with 24 additions and 1 deletions

View File

@@ -296,7 +296,6 @@ static bool isTrivialLoopExitBlockHelper(Loop *L, BasicBlock *BB,
// first exit.
if (ExitBB != 0) return false;
ExitBB = BB;
return true;
}
// Otherwise, this is an unvisited intra-loop node. Check all successors.