]> granicus.if.org Git - clang/commitdiff
code cleanup, avoid shadowing i.
authorChris Lattner <sabre@nondot.org>
Sun, 3 May 2009 08:24:16 +0000 (08:24 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 3 May 2009 08:24:16 +0000 (08:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70678 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaStmt.cpp

index 808368906bbf44f3fabfecb73d94c870c249b31c..cb237870f84158ba35a3282feb29fbb71f668632 100644 (file)
@@ -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,