diff options
author | Jordy Rose <jediknil@belkadan.com> | 2012-03-06 00:28:20 +0000 |
---|---|---|
committer | Jordy Rose <jediknil@belkadan.com> | 2012-03-06 00:28:20 +0000 |
commit | 257c60f23be7dcb012eeee832f5fda22c125c9bd (patch) | |
tree | 17d2007dcffac2435759739d02e6f1bbfc006721 /lib/StaticAnalyzer/Checkers/MallocChecker.cpp | |
parent | 3ebdd8548f97dc5b77172122ab7d6b65de8d4609 (diff) |
[analyzer] Fix unnecessary dyn_cast_or_null. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/MallocChecker.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Checkers/MallocChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/lib/StaticAnalyzer/Checkers/MallocChecker.cpp index 4309045459..8a704760e4 100644 --- a/lib/StaticAnalyzer/Checkers/MallocChecker.cpp +++ b/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<FunctionDecl>(D) && isMemFunction(cast<FunctionDecl>(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<FunctionDecl>(D)) { + if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { // White list the system functions whose arguments escape. const IdentifierInfo *II = FD->getIdentifier(); if (!II) |