r252360 - StaticAnalyzer: Remove implicit ilist iterator conversions, NFC

Duncan P. N. Exon Smith via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 6 15:04:58 PST 2015


Author: dexonsmith
Date: Fri Nov  6 17:04:58 2015
New Revision: 252360

URL: http://llvm.org/viewvc/llvm-project?rev=252360&view=rev
Log:
StaticAnalyzer: Remove implicit ilist iterator conversions, NFC

Remove implicit ilist iterator conversions from clangStaticAnalyzer.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp?rev=252360&r1=252359&r2=252360&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp Fri Nov  6 17:04:58 2015
@@ -3290,11 +3290,11 @@ FindReportInEquivalenceClass(BugReportEq
   // post-dominated by a sink, simply add all the nodes in the equivalence class
   // to 'Nodes'.  Any of the reports will serve as a "representative" report.
   if (!BT.isSuppressOnSink()) {
-    BugReport *R = I;
+    BugReport *R = &*I;
     for (BugReportEquivClass::iterator I=EQ.begin(), E=EQ.end(); I!=E; ++I) {
       const ExplodedNode *N = I->getErrorNode();
       if (N) {
-        R = I;
+        R = &*I;
         bugReports.push_back(R);
       }
     }
@@ -3320,9 +3320,9 @@ FindReportInEquivalenceClass(BugReportEq
     }
     // No successors?  By definition this nodes isn't post-dominated by a sink.
     if (errorNode->succ_empty()) {
-      bugReports.push_back(I);
+      bugReports.push_back(&*I);
       if (!exampleReport)
-        exampleReport = I;
+        exampleReport = &*I;
       continue;
     }
 
@@ -3346,9 +3346,9 @@ FindReportInEquivalenceClass(BugReportEq
         if (Succ->succ_empty()) {
           // If we found an end-of-path node that is not a sink.
           if (!Succ->isSink()) {
-            bugReports.push_back(I);
+            bugReports.push_back(&*I);
             if (!exampleReport)
-              exampleReport = I;
+              exampleReport = &*I;
             WL.clear();
             break;
           }




More information about the cfe-commits mailing list