summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-10-01 17:31:50 +0000
committerTed Kremenek <kremenek@apple.com>2009-10-01 17:31:50 +0000
commit5c22e110a1aa31abdd6317bf472abc53566abdbe (patch)
tree1d96577e02ab1306be9974a6d690f89dc4190829 /clang
parentf99626ed11bddfeb563a5a2ac840e7eaf9f610ee (diff)
downloadbcm5719-llvm-5c22e110a1aa31abdd6317bf472abc53566abdbe.tar.gz
bcm5719-llvm-5c22e110a1aa31abdd6317bf472abc53566abdbe.zip
Fix bad grammar in static analyzer diagnostic. Reported by Robert Purves!
llvm-svn: 83204
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Analysis/CFRefCount.cpp4
-rw-r--r--clang/test/Analysis/retain-release.m2
2 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp
index 75bd25cf5bc..755819197e7 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/lib/Analysis/CFRefCount.cpp
@@ -2054,8 +2054,8 @@ namespace {
BadRelease(CFRefCount* tf) : CFRefBug(tf, "Bad release") {}
const char* getDescription() const {
- return "Incorrect decrement of the reference count of an "
- "object is not owned at this point by the caller";
+ return "Incorrect decrement of the reference count of an object that is "
+ "not owned at this point by the caller";
}
};
diff --git a/clang/test/Analysis/retain-release.m b/clang/test/Analysis/retain-release.m
index 397464ac6fc..5f4f20d3279 100644
--- a/clang/test/Analysis/retain-release.m
+++ b/clang/test/Analysis/retain-release.m
@@ -631,7 +631,7 @@ void rdar6704930(unsigned char *s, unsigned int length) {
int rdar_6257780_Case1() {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSArray *array = [NSArray array];
- [array release]; // expected-warning{{Incorrect decrement of the reference count of an object is not owned at this point by the caller}}
+ [array release]; // expected-warning{{Incorrect decrement of the reference count of an object that is not owned at this point by the caller}}
[pool drain];
return 0;
}
OpenPOWER on IntegriCloud