]> granicus.if.org Git - clang/commitdiff
Don't recycle loop variables (to keep GCC happy).
authorMatt Beaumont-Gay <matthewbg@google.com>
Thu, 23 Aug 2012 01:51:18 +0000 (01:51 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Thu, 23 Aug 2012 01:51:18 +0000 (01:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162424 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaStmtAsm.cpp

index ed7f6ef1c7c89215b780584d47873685f89dcda1..1293b7daefbfa52c769c9b0d4f0f6e8f9ea42c81 100644 (file)
@@ -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;