From: Sylvestre Ledru Date: Fri, 17 Apr 2015 13:21:39 +0000 (+0000) Subject: Remove the assertion as it was useless and broken. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f28eaebc06e9f6e4c2ef62c8b524a3691ec9c508;p=clang 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@235190 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Checkers/CStringChecker.cpp b/lib/StaticAnalyzer/Checkers/CStringChecker.cpp index e31b44497c..0f5741bf9e 100644 --- a/lib/StaticAnalyzer/Checkers/CStringChecker.cpp +++ b/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);