diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-05-06 04:28:05 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-05-06 04:28:05 +0000 |
commit | 2f08fedec1f4c6f92ff4afb4aeda07bc36d953aa (patch) | |
tree | 1fcf40408e24e9c78b3af3052a305405d12b4a7b /clang/lib/Analysis/CFRefCount.cpp | |
parent | 041d02201f02b407db70183f234f072fdb2eb6d7 (diff) | |
download | bcm5719-llvm-2f08fedec1f4c6f92ff4afb4aeda07bc36d953aa.tar.gz bcm5719-llvm-2f08fedec1f4c6f92ff4afb4aeda07bc36d953aa.zip |
String comparison cleanups.
Added test case.
llvm-svn: 50711
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index 040445b20bc..4a20fbec87f 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -636,7 +636,7 @@ RetainSummaryManager::getInstanceMethodSummary(IdentifierInfo* ClsName, if (s[0] == '\0') break; - if (s[0]!='W' || s[1]!='i' || s[2]!='t' || s[3]!='h') + if (!strncmp(s, "With", 4)) break; return 0; |