aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaStmt.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-05-03 08:24:16 +0000
committerChris Lattner <sabre@nondot.org>2009-05-03 08:24:16 +0000
commit58bce89d12b1dfba16637ce3754d6cb24c3099bb (patch)
tree1d4b78b7b4cf0fbe4c874e38f7af828cdaefde68 /lib/Sema/SemaStmt.cpp
parenta077b5c8631596f8d7a588933a9de5d08e9ba428 (diff)
code cleanup, avoid shadowing i.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70678 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaStmt.cpp')
-rw-r--r--lib/Sema/SemaStmt.cpp9
1 files changed, 5 insertions, 4 deletions
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,