diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-11-22 15:02:44 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-11-22 15:02:44 +0000 |
commit | ba4c85e51d9c6a6379c2c4e6866e852cce396b7f (patch) | |
tree | 09a786d23e4d482254097824c1991f0c7578a9ea /clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp | |
parent | 6b8b2a9b98f35cc478a9e7f5c0e0aab6e7fe2ed9 (diff) | |
download | bcm5719-llvm-ba4c85e51d9c6a6379c2c4e6866e852cce396b7f.tar.gz bcm5719-llvm-ba4c85e51d9c6a6379c2c4e6866e852cce396b7f.zip |
Make helpers static/anonymous.
llvm-svn: 168500
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp index aadf2ddfc9c..33f68b6c112 100644 --- a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp @@ -627,8 +627,8 @@ ProgramStateRef MallocChecker::FreeMemAux(CheckerContext &C, /// Checks if the previous call to free on the given symbol failed - if free /// failed, returns true. Also, returns the corresponding return value symbol. -bool didPreviousFreeFail(ProgramStateRef State, - SymbolRef Sym, SymbolRef &RetStatusSymbol) { +static bool didPreviousFreeFail(ProgramStateRef State, + SymbolRef Sym, SymbolRef &RetStatusSymbol) { const SymbolRef *Ret = State->get<FreeReturnValue>(Sym); if (Ret) { assert(*Ret && "We should not store the null return symbol"); |