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 | 12259b443d82d1d95bd66d047196a17b00a2bdba (patch) | |
tree | c4e8bf282cbcfe10794857b321c2392085c807bb /clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp | |
parent | c3776bf288a33cb42daac1a6583ddb5e581839d6 (diff) | |
download | bcm5719-llvm-12259b443d82d1d95bd66d047196a17b00a2bdba.tar.gz bcm5719-llvm-12259b443d82d1d95bd66d047196a17b00a2bdba.zip |
[analyzer] MallocChecker cleanup, more tests.
llvm-svn: 150155
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp index c110e0f6f83..8f4e805e957 100644 --- a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp +++ b/clang/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 |