StaticAnalyzer: Switch a loop to a range-based for

Merely a code simplification, no functionality change.

llvm-svn: 211484
This commit is contained in:
David Majnemer 2014-06-23 02:16:38 +00:00
parent 5f24e7d548
commit fa1d3e35e1
1 changed files with 2 additions and 3 deletions

View File

@ -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<NonLoc>()); // Should be an Lval, or unknown, undef.
if (Optional<Loc> LV = X.getAs<Loc>())