summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-05-07 18:57:30 +0000
committerTed Kremenek <kremenek@apple.com>2008-05-07 18:57:30 +0000
commitfcf060fd2f4c903e53aad1660b5f1e25265ab78a (patch)
treedd1f3b464df77260d1b2e65122f44ea603fcf9a7 /clang/lib/Analysis/CFRefCount.cpp
parent13bbdf23898ae3e8a9a6f060b8633505b5ac0baa (diff)
downloadbcm5719-llvm-fcf060fd2f4c903e53aad1660b5f1e25265ab78a.tar.gz
bcm5719-llvm-fcf060fd2f4c903e53aad1660b5f1e25265ab78a.zip
Flip order of arguments to CStrInStrNoCase.
llvm-svn: 50824
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r--clang/lib/Analysis/CFRefCount.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp
index 5c4cc12f36d..42577dfbe41 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/lib/Analysis/CFRefCount.cpp
@@ -606,8 +606,8 @@ RetainSummaryManager::getMethodSummary(ObjCMessageExpr* ME) {
if (!isNSType(ME->getReceiver()->getType()))
return 0;
- if (CStrInCStrNoCase(s, "create") || CStrInCStrNoCase(s, "copy") ||
- CStrInCStrNoCase(s, "new")) {
+ if (CStrInCStrNoCase("create", s) || CStrInCStrNoCase("copy", s) ||
+ CStrInCStrNoCase("new", s)) {
RetEffect E = isGCEnabled() ? RetEffect::MakeNoRet()
: RetEffect::MakeOwned();
OpenPOWER on IntegriCloud