From f20f630c77b900d4a5f065d9adf3d0ae654a2ca0 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 17 Apr 2015 13:08:54 +0000 Subject: [PATCH] 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 --- lib/StaticAnalyzer/Checkers/CStringChecker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0