summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2011-04-02 03:20:45 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2011-04-02 03:20:45 +0000
commitaf2371e3686b1fcdf02f0dce64dfa93570016253 (patch)
treea36fbd908e399d455c28f8d385431367113ce740 /clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
parent8f89f7c89331594e308bbac9fc4220cba866a744 (diff)
downloadbcm5719-llvm-af2371e3686b1fcdf02f0dce64dfa93570016253.tar.gz
bcm5719-llvm-af2371e3686b1fcdf02f0dce64dfa93570016253.zip
Remove a redundant method. We have a const version.
llvm-svn: 128762
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
index b10c80a266d..a7655c4fb9d 100644
--- a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
@@ -632,6 +632,7 @@ const GRState *MallocChecker::evalAssume(const GRState *state, SVal Cond,
RegionStateTy RS = state->get<RegionState>();
for (RegionStateTy::iterator I = RS.begin(), E = RS.end(); I != E; ++I) {
+ // If the symbol is assumed to NULL, this will return an APSInt*.
if (state->getSymVal(I.getKey()))
state = state->set<RegionState>(I.getKey(),RefState::getAllocateFailed());
}
OpenPOWER on IntegriCloud