aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2012-08-23 01:51:18 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2012-08-23 01:51:18 +0000
commit2d5a1de741c94f15461b06cd09a65081c7ce3d70 (patch)
tree6f8cca86a1e5f0e86cb60d4d6102fa20245fccca
parent60ce584e35503af623e14eeab8fd81df9f215dcd (diff)
Don't recycle loop variables (to keep GCC happy).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162424 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaStmtAsm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaStmtAsm.cpp b/lib/Sema/SemaStmtAsm.cpp
index ed7f6ef1c7..1293b7daef 100644
--- a/lib/Sema/SemaStmtAsm.cpp
+++ b/lib/Sema/SemaStmtAsm.cpp
@@ -533,8 +533,8 @@ StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc,
// Canonicalize the opcode to lower case.
SmallString<128> Opcode;
- for (unsigned i = 0, e = IDVal.size(); i != e; ++i)
- Opcode.push_back(tolower(IDVal[i]));
+ for (unsigned j = 0, e = IDVal.size(); j != e; ++j)
+ Opcode.push_back(tolower(IDVal[j]));
// Parse the operands.
llvm::SMLoc IDLoc;