diff options
author | Anna Zaks <ganna@apple.com> | 2012-02-09 06:25:47 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-02-09 06:25:47 +0000 |
commit | cdfec5e5ea0d1cfebe27888ef072346704424ed8 (patch) | |
tree | 9b77bdadbc64ad012a6169d6af6ff7ba2a940507 /lib/StaticAnalyzer/Checkers/MallocChecker.cpp | |
parent | 53a8b9789c8e87b67aa802e2df205db702c5ef27 (diff) |
[analyzer] MallocChecker cleanup, more tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150155 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/MallocChecker.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Checkers/MallocChecker.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/lib/StaticAnalyzer/Checkers/MallocChecker.cpp index c110e0f6f8..8f4e805e95 100644 --- a/lib/StaticAnalyzer/Checkers/MallocChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/MallocChecker.cpp @@ -352,7 +352,6 @@ ProgramStateRef MallocChecker::FreeMemAux(CheckerContext &C, const MemSpaceRegion *MS = R->getMemorySpace(); - // TODO: Pessimize this. should be behinds a flag! // Parameters, locals, statics, and globals shouldn't be freed. if (!(isa<UnknownSpaceRegion>(MS) || isa<HeapSpaceRegion>(MS))) { // FIXME: at the time this code was written, malloc() regions were |