diff --git a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp index 4309045459e3..8a704760e4d6 100644 --- a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp @@ -1086,7 +1086,7 @@ bool MallocChecker::doesNotFreeMemory(const CallOrObjCMessage *Call, ASTContext &ASTC = State->getStateManager().getContext(); // If it's one of the allocation functions we can reason about, we model - // it's behavior explicitly. + // its behavior explicitly. if (isa(D) && isMemFunction(cast(D), ASTC)) { return true; } @@ -1097,7 +1097,7 @@ bool MallocChecker::doesNotFreeMemory(const CallOrObjCMessage *Call, return false; // Process C/ObjC functions. - if (const FunctionDecl *FD = dyn_cast_or_null(D)) { + if (const FunctionDecl *FD = dyn_cast(D)) { // White list the system functions whose arguments escape. const IdentifierInfo *II = FD->getIdentifier(); if (!II)