[cfe-commits] r70678 - /cfe/trunk/lib/Sema/SemaStmt.cpp

Chris Lattner sabre at nondot.org
Sun May 3 01:24:19 PDT 2009


Author: lattner
Date: Sun May  3 03:24:16 2009
New Revision: 70678

URL: http://llvm.org/viewvc/llvm-project?rev=70678&view=rev
Log:
code cleanup, avoid shadowing i.

Modified:
    cfe/trunk/lib/Sema/SemaStmt.cpp

Modified: cfe/trunk/lib/Sema/SemaStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaStmt.cpp?rev=70678&r1=70677&r2=70678&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaStmt.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmt.cpp Sun May  3 03:24:16 2009
@@ -1060,10 +1060,11 @@
       // 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,





More information about the cfe-commits mailing list