summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-11-06 04:20:54 +0000
committerAnna Zaks <ganna@apple.com>2012-11-06 04:20:54 +0000
commit49bb65024ce214343bd7dca35fee04d7c57f9c38 (patch)
tree698d682cba1ed21bd7482ca627931a030d9a5435 /clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
parent70459fc5b6f00c897f93f12bb8326e50fa3068f7 (diff)
downloadbcm5719-llvm-49bb65024ce214343bd7dca35fee04d7c57f9c38.tar.gz
bcm5719-llvm-49bb65024ce214343bd7dca35fee04d7c57f9c38.zip
[analyzer] Remove isWithinInlined. It's been replaced with inTopFrame().
Thanks Jordan. llvm-svn: 167438
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp b/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
index e170aa56c5c..0dd64780f12 100644
--- a/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
@@ -763,7 +763,7 @@ void ObjCNonNilReturnValueChecker::checkPostObjCMessage(const ObjCMethodCall &M,
// since 'nil' is rarely returned in practice, we should not warn when the
// caller to the defensive constructor uses the object in contexts where
// 'nil' is not accepted.
- if (C.isWithinInlined() && M.getDecl() &&
+ if (!C.inTopFrame() && M.getDecl() &&
M.getDecl()->getMethodFamily() == OMF_init &&
M.isReceiverSelfOrSuper()) {
State = assumeExprIsNonNull(M.getOriginExpr(), State, C);
OpenPOWER on IntegriCloud