summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-06-02 10:20:41 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-06-02 10:20:41 +0000
commit474261af7bbba153fecd411f42f0c7930dc5f1fb (patch)
treef0a785a5166d5acc5bf4e3cdf074fdb532b99b97 /clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
parentbde917666307faf3c9e2d290c38a0018f54d7a68 (diff)
downloadbcm5719-llvm-474261af7bbba153fecd411f42f0c7930dc5f1fb.tar.gz
bcm5719-llvm-474261af7bbba153fecd411f42f0c7930dc5f1fb.zip
Fix typos found by http://github.com/lyda/misspell-check
llvm-svn: 157886
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
index 0ceb4675e5b..3b9712fd9bf 100644
--- a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
@@ -1286,7 +1286,7 @@ bool MallocChecker::doesNotFreeMemory(const CallOrObjCMessage *Call,
// White list the 'XXXNoCopy' ObjC functions.
if (FName.endswith("NoCopy")) {
// Look for the deallocator argument. We know that the memory ownership
- // is not transfered only if the deallocator argument is
+ // is not transferred only if the deallocator argument is
// 'kCFAllocatorNull'.
for (unsigned i = 1; i < Call->getNumArgs(); ++i) {
const Expr *ArgE = Call->getArg(i)->IgnoreParenCasts();
@@ -1368,7 +1368,7 @@ bool MallocChecker::doesNotFreeMemory(const CallOrObjCMessage *Call,
}
// If the first selector ends with NoCopy, assume that the ownership is
- // transfered as well.
+ // transferred as well.
// Ex: [NSData dataWithBytesNoCopy:bytes length:10];
if (S.getNameForSlot(0).endswith("NoCopy")) {
return false;
OpenPOWER on IntegriCloud