summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2015-11-11 00:49:22 +0000
committerAnna Zaks <ganna@apple.com>2015-11-11 00:49:22 +0000
commitde14eb5b4e73ae809997c8f40517dbdcf97b00ea (patch)
tree63f06c0f0790fa946eab4a3d47fa24ddb5a88126 /clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
parent2c98d0f47749803c667f629a3805c7dcb7566c92 (diff)
downloadbcm5719-llvm-de14eb5b4e73ae809997c8f40517dbdcf97b00ea.tar.gz
bcm5719-llvm-de14eb5b4e73ae809997c8f40517dbdcf97b00ea.zip
[static analyzer] Don't flag nil storage into NSMutableDictionary.
This is now allowed and has the behavior of removing the mapping. llvm-svn: 252679
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp b/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
index e157478433c..fd08b0239b3 100644
--- a/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
@@ -307,8 +307,7 @@ void NilArgChecker::checkPreObjCMessage(const ObjCMethodCall &msg,
warnIfNilArg(C, msg, /* Arg */1, Class);
} else if (S == SetObjectForKeyedSubscriptSel) {
CanBeSubscript = true;
- Arg = 0;
- warnIfNilArg(C, msg, /* Arg */1, Class, CanBeSubscript);
+ Arg = 1;
} else if (S == RemoveObjectForKeySel) {
Arg = 0;
}
OpenPOWER on IntegriCloud