From: Sylvestre Ledru Date: Fri, 17 Apr 2015 13:08:54 +0000 (+0000) Subject: Fix a bad assert. Found by coverity. CID 1101110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f20f630c77b900d4a5f065d9adf3d0ae654a2ca0;p=clang Fix a bad assert. Found by coverity. CID 1101110 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@235188 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Checkers/CStringChecker.cpp b/lib/StaticAnalyzer/Checkers/CStringChecker.cpp index e91a7e1680..e31b44497c 100644 --- a/lib/StaticAnalyzer/Checkers/CStringChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/CStringChecker.cpp @@ -1924,7 +1924,7 @@ bool CStringChecker::evalCall(const CallExpr *CE, CheckerContext &C) const { // Make sure each function sets its own description. // (But don't bother in a release build.) - assert(!(CurrentFunctionDescription = nullptr)); + assert(!(CurrentFunctionDescription == nullptr)); // Check and evaluate the call. (this->*evalFunction)(C, CE);