diff options
author | Chris Lattner <sabre@nondot.org> | 2009-05-03 08:24:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-05-03 08:24:16 +0000 |
commit | 97de21f754eafe54864a4a1eb32d77e2ae402424 (patch) | |
tree | c27fbd5c4cebdb4e24f799cda31188c9f1f8cd16 /clang/lib/Sema/SemaStmt.cpp | |
parent | 59c3a9cd54448efb78aabce4d0b41bad8978be34 (diff) | |
download | bcm5719-llvm-97de21f754eafe54864a4a1eb32d77e2ae402424.tar.gz bcm5719-llvm-97de21f754eafe54864a4a1eb32d77e2ae402424.zip |
code cleanup, avoid shadowing i.
llvm-svn: 70678
Diffstat (limited to 'clang/lib/Sema/SemaStmt.cpp')
-rw-r--r-- | clang/lib/Sema/SemaStmt.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp index 808368906bb..cb237870f84 100644 --- a/clang/lib/Sema/SemaStmt.cpp +++ b/clang/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, |