[cfe-commits] r162424 - /cfe/trunk/lib/Sema/SemaStmtAsm.cpp

Matt Beaumont-Gay matthewbg at google.com
Wed Aug 22 18:51:19 PDT 2012


Author: matthewbg
Date: Wed Aug 22 20:51:18 2012
New Revision: 162424

URL: http://llvm.org/viewvc/llvm-project?rev=162424&view=rev
Log:
Don't recycle loop variables (to keep GCC happy).

Modified:
    cfe/trunk/lib/Sema/SemaStmtAsm.cpp

Modified: cfe/trunk/lib/Sema/SemaStmtAsm.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaStmtAsm.cpp?rev=162424&r1=162423&r2=162424&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaStmtAsm.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmtAsm.cpp Wed Aug 22 20:51:18 2012
@@ -533,8 +533,8 @@
 
     // 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;





More information about the cfe-commits mailing list