]> granicus.if.org Git - clang/commitdiff
Remove the assertion as it was useless and broken.
authorSylvestre Ledru <sylvestre@debian.org>
Fri, 17 Apr 2015 13:21:39 +0000 (13:21 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Fri, 17 Apr 2015 13:21:39 +0000 (13:21 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@235190 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Checkers/CStringChecker.cpp

index e31b44497cf34e24fc0e9594abf61e940d7cb304..0f5741bf9e68ce7d3717daad6f3bd4ec5b12df52 100644 (file)
@@ -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);