summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/ObjCARC.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2011-08-11 21:06:32 +0000
committerDan Gohman <gohman@apple.com>2011-08-11 21:06:32 +0000
commit7e315fc37d33ca5af7a375d8aaa462299f398264 (patch)
tree1a283e2a6193c80594f388d44a111040b97a2b43 /llvm/lib/Transforms/Scalar/ObjCARC.cpp
parent6d8c039ab1e8b50169cdba7b54113c71fa7fa49f (diff)
downloadbcm5719-llvm-7e315fc37d33ca5af7a375d8aaa462299f398264.tar.gz
bcm5719-llvm-7e315fc37d33ca5af7a375d8aaa462299f398264.zip
Fix typos in comments, and delete an unused function.
llvm-svn: 137352
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ObjCARC.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/ObjCARC.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Scalar/ObjCARC.cpp b/llvm/lib/Transforms/Scalar/ObjCARC.cpp
index 6b5dfc237f8..f3f91495a5f 100644
--- a/llvm/lib/Transforms/Scalar/ObjCARC.cpp
+++ b/llvm/lib/Transforms/Scalar/ObjCARC.cpp
@@ -1194,10 +1194,6 @@ namespace {
if (RefCount != 0) --RefCount;
}
- void ClearRefCount() {
- RefCount = 0;
- }
-
bool IsKnownIncremented() const {
return RefCount > 0;
}
@@ -1364,7 +1360,7 @@ void BBState::MergePred(const BBState &Other) {
/*TopDown=*/true);
}
- // For each entry in our set, if the other set doens't have an entry with the
+ // For each entry in our set, if the other set doesn't have an entry with the
// same key, force it to merge with an empty entry.
for (ptr_iterator MI = top_down_ptr_begin(),
ME = top_down_ptr_end(); MI != ME; ++MI)
@@ -1389,7 +1385,7 @@ void BBState::MergeSucc(const BBState &Other) {
/*TopDown=*/false);
}
- // For each entry in our set, if the other set doens't have an entry
+ // For each entry in our set, if the other set doesn't have an entry
// with the same key, force it to merge with an empty entry.
for (ptr_iterator MI = bottom_up_ptr_begin(),
ME = bottom_up_ptr_end(); MI != ME; ++MI)
OpenPOWER on IntegriCloud