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 8083689..cb23787 100644
--- a/lib/Sema/SemaStmt.cpp
+++ b/lib/Sema/SemaStmt.cpp
@@ -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,