From: Chris Lattner Date: Sun, 3 May 2009 08:24:16 +0000 (+0000) Subject: code cleanup, avoid shadowing i. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=58bce89d12b1dfba16637ce3754d6cb24c3099bb;p=clang code cleanup, avoid shadowing i. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70678 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp index 808368906b..cb237870f8 100644 --- a/lib/Sema/SemaStmt.cpp +++ b/lib/Sema/SemaStmt.cpp @@ -1060,10 +1060,11 @@ Sema::OwningStmtResult Sema::ActOnAsmStmt(SourceLocation AsmLoc, // case now. bool MentionedInput = false; bool MentionedOutput = false; - for (unsigned i = 0, e = Pieces.size(); i != e; ++i) { - if (!Pieces[i].isOperand()) continue; - MentionedInput |= Pieces[i].getOperandNo() == i+NumOutputs; - MentionedOutput |= Pieces[i].getOperandNo() == TiedTo; + for (unsigned p = 0, e = Pieces.size(); p != e; ++p) { + AsmStmt::AsmStringPiece &Piece = Pieces[p]; + if (!Piece.isOperand()) continue; + MentionedInput |= Piece.getOperandNo() == i+NumOutputs; + MentionedOutput |= Piece.getOperandNo() == TiedTo; } // If neither the input nor the output was mentioned in the asm string,