]> granicus.if.org Git - clang/commitdiff
Fix a bad assert. Found by coverity. CID 1101110
authorSylvestre Ledru <sylvestre@debian.org>
Fri, 17 Apr 2015 13:08:54 +0000 (13:08 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Fri, 17 Apr 2015 13:08:54 +0000 (13:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@235188 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Checkers/CStringChecker.cpp

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