]> granicus.if.org Git - clang/commitdiff
[analyzer] Remove an unnecessary check.
authorAnna Zaks <ganna@apple.com>
Tue, 6 Dec 2011 23:12:17 +0000 (23:12 +0000)
committerAnna Zaks <ganna@apple.com>
Tue, 6 Dec 2011 23:12:17 +0000 (23:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145984 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Checkers/TaintTesterChecker.cpp

index 0819e86253ff7de923ba7552335be36b6285d32b..415346f29c452eac5758f191814868c8af0aa6ee 100644 (file)
@@ -47,7 +47,7 @@ void TaintTesterChecker::checkPostStmt(const Expr *E,
   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);