[cfe-commits] r145984 - /cfe/trunk/lib/StaticAnalyzer/Checkers/TaintTesterChecker.cpp
Anna Zaks
ganna at apple.com
Tue Dec 6 15:12:17 PST 2011
Author: zaks
Date: Tue Dec 6 17:12:17 2011
New Revision: 145984
URL: http://llvm.org/viewvc/llvm-project?rev=145984&view=rev
Log:
[analyzer] Remove an unnecessary check.
Modified:
cfe/trunk/lib/StaticAnalyzer/Checkers/TaintTesterChecker.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/TaintTesterChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/TaintTesterChecker.cpp?rev=145984&r1=145983&r2=145984&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/TaintTesterChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/TaintTesterChecker.cpp Tue Dec 6 17:12:17 2011
@@ -47,7 +47,7 @@
if (!State)
return;
- if (E && State->isTainted(E)) {
+ if (State->isTainted(E)) {
if (ExplodedNode *N = C.addTransition()) {
initBugType();
BugReport *report = new BugReport(*BT, "tainted",N);
More information about the cfe-commits
mailing list