forked from OSchip/llvm-project
[analyzer] Fix a buildbot crash triggered by turning on dynamic
dispatch. llvm-svn: 164579
This commit is contained in:
parent
60f2e1efb8
commit
4396c54c14
|
@ -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() &&
|
||||
if (C.isWithinInlined() && M.getDecl() &&
|
||||
M.getDecl()->getMethodFamily() == OMF_init &&
|
||||
M.isReceiverSelfOrSuper()) {
|
||||
State = assumeExprIsNonNull(M.getOriginExpr(), State, C);
|
||||
|
|
Loading…
Reference in New Issue