From: Matt Beaumont-Gay Date: Thu, 23 Aug 2012 01:51:18 +0000 (+0000) Subject: Don't recycle loop variables (to keep GCC happy). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d5a1de741c94f15461b06cd09a65081c7ce3d70;p=clang 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 --- 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;