Fix bad grammar in static analyzer diagnostic. Reported by Robert Purves!

llvm-svn: 83204
This commit is contained in:
Ted Kremenek 2009-10-01 17:31:50 +00:00
parent f99626ed11
commit 5c22e110a1
2 changed files with 3 additions and 3 deletions

View File

@ -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";
}
};

View File

@ -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;
}