summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-12-23 23:49:25 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-12-23 23:49:25 +0000
commit8a5641d856da53978a032dd37f2112b3c7a83b19 (patch)
treebbeb8eb2684ba2e77a9cf39c242be567f9f57470
parentd4659addf8067dbca668a0c8ca7388f5e428e1a5 (diff)
downloadllvm-8a5641d856da53978a032dd37f2112b3c7a83b19.tar.gz
llvm-8a5641d856da53978a032dd37f2112b3c7a83b19.tar.bz2
llvm-8a5641d856da53978a032dd37f2112b3c7a83b19.tar.xz
Fix typo "infinte".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147226 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/LoopUnswitch.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopUnswitch.cpp b/lib/Transforms/Scalar/LoopUnswitch.cpp
index a2d0e98cd3..94fb3cf744 100644
--- a/lib/Transforms/Scalar/LoopUnswitch.cpp
+++ b/lib/Transforms/Scalar/LoopUnswitch.cpp
@@ -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