Author: sylvestre
Date: Fri Apr 17 08:08:54 2015
New Revision: 235188
URL: http://llvm.org/viewvc/llvm-project?rev=235188&view=rev
Log:
Fix a bad assert. Found by coverity. CID 1101110
Modified:
cfe/trunk/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/CStringChecker.cpp?rev=235188&r1=235187&r2=235188&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/CStringChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/CStringChecker.cpp Fri Apr 17
08:08:54 2015
@@ -1924,7 +1924,7 @@ bool CStringChecker::evalCall(const Call
// 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);
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits