[analyzer] Remove isWithinInlined. It's been replaced with inTopFrame().

Thanks Jordan.

llvm-svn: 167438
This commit is contained in:
Anna Zaks 2012-11-06 04:20:54 +00:00
parent 70459fc5b6
commit 49bb65024c
2 changed files with 1 additions and 6 deletions

View File

@ -130,11 +130,6 @@ public:
/// Return true if the current LocationContext has no caller context.
bool inTopFrame() const { return getLocationContext()->inTopFrame(); }
/// Returns true if the predecessor is within an inlined function/method.
bool isWithinInlined() {
return (getStackFrame()->getParent() != 0);
}
BugReporter &getBugReporter() {
return Eng.getBugReporter();
}

View File

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