summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2015-04-17 13:21:39 +0000
committerSylvestre Ledru <sylvestre@debian.org>2015-04-17 13:21:39 +0000
commit3dbaf8534afc3576723494c213b13df35bfaae46 (patch)
tree9ba71cd3e9c89dde5424e0b79cb61621564471fc /clang/lib/StaticAnalyzer
parent908cba40b61e66625278eb254fa223d6b65e8959 (diff)
downloadbcm5719-llvm-3dbaf8534afc3576723494c213b13df35bfaae46.tar.gz
bcm5719-llvm-3dbaf8534afc3576723494c213b13df35bfaae46.zip
Remove the assertion as it was useless and broken.
Enforcing the assert caused the following tests to fail: Clang :: Analysis__bstring.c Clang :: Analysis__comparison-implicit-casts.cpp Clang :: Analysis__malloc-interprocedural.c Clang :: Analysis__malloc.c Clang :: Analysis__redefined_system.c Clang :: Analysis__string.c Clang :: Analysis__weak-functions.c llvm-svn: 235190
Diffstat (limited to 'clang/lib/StaticAnalyzer')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
index e31b44497cf..0f5741bf9e6 100644
--- a/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
@@ -1922,10 +1922,6 @@ bool CStringChecker::evalCall(const CallExpr *CE, CheckerContext &C) const {
if (!evalFunction)
return false;
- // Make sure each function sets its own description.
- // (But don't bother in a release build.)
- assert(!(CurrentFunctionDescription == nullptr));
-
// Check and evaluate the call.
(this->*evalFunction)(C, CE);
OpenPOWER on IntegriCloud