summaryrefslogtreecommitdiffstats
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
commitd9d1de4f697f6a92a88ce1e980b4ff85ed4d14b3 (patch)
treeced38877d3eb7f94d3c57c22f611874b7d87c67e
parentd3bdadf616298fa91baebabfeebd491b6b9c40ce (diff)
downloadbcm5719-llvm-d9d1de4f697f6a92a88ce1e980b4ff85ed4d14b3.tar.gz
bcm5719-llvm-d9d1de4f697f6a92a88ce1e980b4ff85ed4d14b3.zip
Fix typo "infinte".
llvm-svn: 147226
-rw-r--r--llvm/lib/Transforms/Scalar/LoopUnswitch.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
index a2d0e98cd33..94fb3cf7443 100644
--- a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud