Fix typo "infinte".
authorNick Lewycky <nicholas@mxc.ca>
Fri, 23 Dec 2011 23:49:25 +0000 (23:49 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 23 Dec 2011 23:49:25 +0000 (23:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147226 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopUnswitch.cpp

index a2d0e98cd33ff24e1166d4adcbffb4725693fef6..94fb3cf7443a3cb619b8ad07caf929689734eacf 100644 (file)
@@ -342,7 +342,8 @@ static bool isTrivialLoopExitBlockHelper(Loop *L, BasicBlock *BB,
                                          BasicBlock *&ExitBB,
                                          std::set<BasicBlock*> &Visited) {
   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;
   } else if (!L->contains(BB)) {
     // Otherwise, this is a loop exit, this is fine so long as this is the