r297905 - Remove repeated code (PR32250). NFCI.

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 15 15:43:37 PDT 2017


Author: rksimon
Date: Wed Mar 15 17:43:36 2017
New Revision: 297905

URL: http://llvm.org/viewvc/llvm-project?rev=297905&view=rev
Log:
Remove repeated code (PR32250). NFCI.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Checkers/IteratorPastEndChecker.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/IteratorPastEndChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/IteratorPastEndChecker.cpp?rev=297905&r1=297904&r2=297905&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/IteratorPastEndChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/IteratorPastEndChecker.cpp Wed Mar 15 17:43:36 2017
@@ -415,8 +415,6 @@ bool IteratorPastEndChecker::evalCall(co
         return evalFindFirstOf(C, CE);
       } else if (FD->getIdentifier() == II_find_if) {
         return evalFindIf(C, CE);
-      } else if (FD->getIdentifier() == II_find_if) {
-        return evalFindIf(C, CE);
       } else if (FD->getIdentifier() == II_find_if_not) {
         return evalFindIfNot(C, CE);
       } else if (FD->getIdentifier() == II_upper_bound) {




More information about the cfe-commits mailing list