From: David Majnemer Date: Mon, 23 Jun 2014 02:16:38 +0000 (+0000) Subject: StaticAnalyzer: Switch a loop to a range-based for X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1c56609d23e251fdc686a9a3f98d31f136ee307;p=clang StaticAnalyzer: Switch a loop to a range-based for Merely a code simplification, no functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211484 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Core/ExprEngine.cpp b/lib/StaticAnalyzer/Core/ExprEngine.cpp index d03051c837..06eaf991bb 100644 --- a/lib/StaticAnalyzer/Core/ExprEngine.cpp +++ b/lib/StaticAnalyzer/Core/ExprEngine.cpp @@ -2253,9 +2253,8 @@ void ExprEngine::VisitGCCAsmStmt(const GCCAsmStmt *A, ExplodedNode *Pred, ProgramStateRef state = Pred->getState(); - for (GCCAsmStmt::const_outputs_iterator OI = A->begin_outputs(), - OE = A->end_outputs(); OI != OE; ++OI) { - SVal X = state->getSVal(*OI, Pred->getLocationContext()); + for (const Expr *O : A->outputs()) { + SVal X = state->getSVal(O, Pred->getLocationContext()); assert (!X.getAs()); // Should be an Lval, or unknown, undef. if (Optional LV = X.getAs())