summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-02-09 06:25:47 +0000
committerAnna Zaks <ganna@apple.com>2012-02-09 06:25:47 +0000
commit12259b443d82d1d95bd66d047196a17b00a2bdba (patch)
treec4e8bf282cbcfe10794857b321c2392085c807bb /clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
parentc3776bf288a33cb42daac1a6583ddb5e581839d6 (diff)
downloadbcm5719-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.cpp1
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
OpenPOWER on IntegriCloud