From 67fafbb08d456c44dabca62e3af4c20abb715d65 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Fri, 6 Nov 2015 23:04:58 +0000 Subject: [PATCH] StaticAnalyzer: Remove implicit ilist iterator conversions, NFC Remove implicit ilist iterator conversions from clangStaticAnalyzer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@252360 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/StaticAnalyzer/Core/BugReporter.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/StaticAnalyzer/Core/BugReporter.cpp b/lib/StaticAnalyzer/Core/BugReporter.cpp index 56d57c5014..663518f763 100644 --- a/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -3290,11 +3290,11 @@ FindReportInEquivalenceClass(BugReportEquivClass& EQ, // 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(BugReportEquivClass& EQ, } // 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(BugReportEquivClass& EQ, 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; } -- 2.40.0