Fix typo "infinte".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147226 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nick Lewycky 2011-12-23 23:49:25 +00:00
parent d4659addf8
commit 8a5641d856

View File

@ -342,7 +342,8 @@ static bool isTrivialLoopExitBlockHelper(Loop *L, BasicBlock *BB,
BasicBlock *&ExitBB, BasicBlock *&ExitBB,
std::set<BasicBlock*> &Visited) { std::set<BasicBlock*> &Visited) {
if (!Visited.insert(BB).second) { if (!Visited.insert(BB).second) {
// Already visited. Without more analysis, this could indicate an infinte loop. // Already visited. Without more analysis, this could indicate an infinite
// loop.
return false; return false;
} else if (!L->contains(BB)) { } else if (!L->contains(BB)) {
// Otherwise, this is a loop exit, this is fine so long as this is the // Otherwise, this is a loop exit, this is fine so long as this is the