diff options
Diffstat (limited to 'lib/StaticAnalyzer/Core/ObjCMessage.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/ObjCMessage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Core/ObjCMessage.cpp b/lib/StaticAnalyzer/Core/ObjCMessage.cpp index 0c6d8a8b63..994e6fbe62 100644 --- a/lib/StaticAnalyzer/Core/ObjCMessage.cpp +++ b/lib/StaticAnalyzer/Core/ObjCMessage.cpp @@ -139,7 +139,7 @@ bool CallOrObjCMessage::hasNonZeroCallbackArg() const { FD = Ctor->getConstructor(); const CallExpr * CE = CallE.get<const CallExpr *>(); - FD = dyn_cast<FunctionDecl>(CE->getCalleeDecl()); + FD = dyn_cast_or_null<FunctionDecl>(CE->getCalleeDecl()); // If calling using a function pointer, assume the function does not // have a callback. TODO: We could check the types of the arguments here. |